Skip to content

Completed tasks #1-3#4

Open
roberteliason wants to merge 3 commits intoDevdits:mainfrom
roberteliason:develop
Open

Completed tasks #1-3#4
roberteliason wants to merge 3 commits intoDevdits:mainfrom
roberteliason:develop

Conversation

@roberteliason
Copy link
Copy Markdown

Completed the leaderboard.
Added limit to 20 players. Sorted the results by grid size and then play time, faster is better.
Also added a unique player count.
A player can choose a name when starting play, this name will be used in the leaderboard. A timestamp is set when pressing play, this timestamp is then used to calculate elapsed time at end of game. If the game ends with a win for the player, the result is saved to the players table.

I added an alternative move logic for the computer where I first filter out the empty cells in the matrix and then randomly pick from them to choose the next move. It doesn't use recursion, but it's equally naive.

For a little nice experience, I added a modicum of styling to the play field and leaderboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants