A Swift command-line simulation based on rock, paper, scissors.
This project simulates the mechanics of rock, paper, scissors (with some added features).
Inspired by @livingrps (Peter Ganunis)
output:
π§ π₯
π§ π¨
π¦ π¨
π¦ π©
π₯ π© π₯ π©
π© π¦ π¦
π¨
π¦ π¨ π¨
π₯ π§ π¦
π§ π₯ π§
155
π₯: 5
π§: 5
π¨: 5
π©: 4
π¦: 6
Ξ£: 25
- Download the Unix Executable File from the releases page
- Open terminal and navigate to the directory using
cd /path/to/dir/ - Run the Executable using
./RPS-Sim <gridSize> <noOfPieces> <noOfFrames> <noOfTeams>
Note: When running the program you need to provide the following arguments, in this order:
<gridSize>: Int - The size of the grid for the simulation.<numberOfPieces>: Int - The number of objects per team.<noOfFrames>: Int - The number of frames to be simulated.<noOfTeams>: Int - The number of teams in the simulation (must be an odd number and less than 9).
Contributions are welcome!
- Author: Joshua Wolfson
- GitHub: The-Wolfson
made with β€οΈ from π¦πΊ