https://github.com/bearloga/3d-tic-tac-toe-in-r
Three-Dimensional Tic-Tac-Toe! (To be played with another person.)
https://github.com/bearloga/3d-tic-tac-toe-in-r
Last synced: about 1 year ago
JSON representation
Three-Dimensional Tic-Tac-Toe! (To be played with another person.)
- Host: GitHub
- URL: https://github.com/bearloga/3d-tic-tac-toe-in-r
- Owner: bearloga
- Created: 2012-06-21T22:15:55.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2021-10-06T21:02:52.000Z (over 4 years ago)
- Last Synced: 2025-03-24T13:44:10.773Z (about 1 year ago)
- Language: R
- Size: 2.93 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Three-Dimensional Tic-Tac-Toe in R!
To be played with another person on the same computer
## Game Rules
To win, a player must place four of their symbols on four squares that line up vertically, horizontally, or diagonally, on a single grid, or spaced evenly over all four grids.
P.S. Same square across all four planes counts as a victory as well.
## Setup
1. Copy and paste the entire script into R
2. Feel free to customize the symbols and their colors
3. Enter `play()` to begin playing
**Optional**: use `play(N)` to play a (N-by-N-by-N) match and `play(xname = "Mikhail", oname = "Sam")` to preset names