Closed johnbeech closed 6 years ago
Created a test for a three player game, where the state before the final card involved a King, a Princess, and a Countess. Have proved that the sort algorithm was working in reverse - the player with the King won on first test.
Also fixed a variable undefined error which was crashing the game with a stack trace at the end of the round.
Seen several times; on investigation of code I spotted a few potential bug with the sort algorithm - not checking the right card properly, and also might be sorting in reverse; lowest card first.