Last active
July 10, 2021 08:20
-
-
Save tk3369/b18f88976b6fccf403dded3878f6a09b to your computer and use it in GitHub Desktop.
tic-tac-toe game
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TicTacToe game | |
> ttt start | |
@tk3369, ok - let's play a Tic-Tac-Toe game! | |
Enter your move as letter-digit. For example, `ttt b3`. | |
a b c | |
|---|---|---| | |
1 | | | | | |
|---|---|---| | |
2 | | | | | |
|---|---|---| | |
3 | | | | | |
|---|---|---| | |
> ttt b3 | |
@tk3369, great move! | |
a b c | |
|---|---|---| | |
1 | | | | | |
|---|---|---| | |
2 | | | | | |
|---|---|---| | |
3 | | o | | | |
|---|---|---| | |
Here's my move: | |
a b c | |
|---|---|---| | |
1 | | | | | |
|---|---|---| | |
2 | | | x | | |
|---|---|---| | |
3 | | o | | | |
|---|---|---| | |
> ttt b2 | |
@tk3369, great move! | |
a b c | |
|---|---|---| | |
1 | | | | | |
|---|---|---| | |
2 | | o | x | | |
|---|---|---| | |
3 | | o | | | |
|---|---|---| | |
Here's my move: | |
a b c | |
|---|---|---| | |
1 | | x | | | |
|---|---|---| | |
2 | | o | x | | |
|---|---|---| | |
3 | | o | | | |
|---|---|---| | |
> ttt c3 | |
@tk3369, great move! | |
a b c | |
|---|---|---| | |
1 | | x | | | |
|---|---|---| | |
2 | | o | x | | |
|---|---|---| | |
3 | | o | o | | |
|---|---|---| | |
Here's my move: | |
a b c | |
|---|---|---| | |
1 | | x | | | |
|---|---|---| | |
2 | | o | x | | |
|---|---|---| | |
3 | x | o | o | | |
|---|---|---| | |
> ttt a1 | |
@tk3369, wow, you are smart! you win! :-) | |
a b c | |
|---|---|---| | |
1 | o | x | | | |
|---|---|---| | |
2 | | o | x | | |
|---|---|---| | |
3 | x | o | o | | |
|---|---|---| | |
Common responses: | |
- great move! | |
- are you really sure about that? | |
- excellent choice. | |
Final statement: | |
- wow, you are smart! you win! :-) | |
- haha, try better next time. | |
- i can't believe that it's a draw... | |
Other commands: | |
> ttt view | |
@tk3369, it's your turn. Here's how it looks like: | |
a b c | |
|---|---|---| | |
1 | | x | | | |
|---|---|---| | |
2 | | o | x | | |
|---|---|---| | |
3 | | o | | | |
|---|---|---| | |
> ttt wat | |
@tk3369, "wat" is not a valid position. | |
> ttt b3 | |
@tk3369, hey, position b3 is already occupied. | |
> ttt start | |
@tk3369, hey, a game is current in progress. Type "ttt abandon" to give up. | |
> ttt abandon | |
@tk3369, ok, thank you for playing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment