Hi, in the game that i'm programming, some tokens scores half a point (0.5 or ½) and the "player_score" column is an Int by default. The first thing I tried is to multiply everything by 10 in the database and divide the score by 10 in my JavaScript. Works fine except in multiactive state so far but the game result page shows the database values so 10 times the actual values. I tried to modify the "player_score" column to Decimal(3, 1). The player board doesn't show the decimal value and game result page rounds the score (so a bit off, not sure if it's better than 10 times the actual values though).
Anyone knows a game with decimal or half point scoring in it or a way to better manage this than what I tried?
Anyone knows a game with decimal or half point scoring in it or a way to better manage this than what I tried?