Humans-of-Julia / HoJBot.jl

Yay, our own Discord bot!
MIT License
22 stars 11 forks source link

Game idea: Tic-Tac-Toe #96

Open tk3369 opened 3 years ago

tk3369 commented 3 years ago

Game play

> ttt
@tk3369, ok - let's play a Tic-Tac-Toe game!
Enter your first 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 |
  |---|---|---|

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
@tk3369, hey, a game is currently in progress. Type "ttt abandon" to give up.

> ttt abandon
@tk3369, ok, thank you for playing.

Wordings

Common responses:

Final statement: