https://github.com/cls1991/24-game
24 point game implemented in Python, just for fun!
https://github.com/cls1991/24-game
24pointgame twisted
Last synced: 9 months ago
JSON representation
24 point game implemented in Python, just for fun!
- Host: GitHub
- URL: https://github.com/cls1991/24-game
- Owner: cls1991
- License: mit
- Created: 2018-01-04T04:42:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T08:29:32.000Z (about 8 years ago)
- Last Synced: 2025-04-05T12:42:09.588Z (9 months ago)
- Topics: 24pointgame, twisted
- Language: Python
- Size: 16.6 KB
- Stars: 16
- Watchers: 14
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 24-game
24 point game implemented in Python, just for fun!
[](https://asciinema.org/a/i4aAC6Fp3cnRL1zMqLULz3ynV)
## Quickstart
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
## Usage
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.
## Test
I have deployed one instance to the public internet, you can visit at `106.75.56.232:12345`.
## TODO
- A more beautiful ui.
- Add pk mode.
- [x] Wrap rank refresh as a cron task.