Skip to content

The-Wolfson/Survival-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Survival-Simulation

A Swift command-line simulation based on rock, paper, scissors.

Description

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 

Usage

  1. Download the Unix Executable File from the releases page
  2. Open terminal and navigate to the directory using cd /path/to/dir/
  3. 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).

Contributing

Contributions are welcome!

Contact

made with ❀️ from πŸ‡¦πŸ‡Ί

About

A swift commandline simulation based on rock, paper, scissors.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages