24 point game implemented in Python, just for fun!
connect to game:
$ nc 127.0.0.1 12345 $ telnet 127.0.0.1 12345
start the game, give a random list consisted of four cards:
$ start `13 1 7 3`
guess whether these four cards can make up 24 points or not, and submit your guess:
$ submit yes $ submit y `submit no You're wrong, one of the solutions is `((13 + 1) + 7) + 3`. `
query your profile:
$ info ` Your connection is 127.0.0.1:59262, your score is 1. `
show the rank info:
$ rank ` Score ranks: 1 1 1. `
quit the game:
$ quit $ CTRL+C
Play 24 point game. Commands: start Start the game. submit Commit your guess(yes/y for solutions, others for no solutions). rank Show the first three of score ranks. info Show player info. quit Quit the game. help Show this message.
I have deployed one instance to the public internet, you can visit at
- A more beautiful ui.
- Add pk mode.
- Wrap rank refresh as a cron task.