Skip to content

corndeladmin/TableTennisTable-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table Tennis Table

  1. Fork this repo

    • Click Fork in the top-right of the page - this will create a copy of this repo in your own GitHub account
  2. Clone (download) the repo

    • Go to your newly-created fork of the repo (on GitHub).
    • Click Clone or download (the green button on the right).
    • Make sure the page says Clone with SSH (rather than Clone with HTTPS).
    • Open your git client (e.g. GitKraken) and use this link to clone the repo.
      Your trainer will be able to help you with this.
  3. "Cloning the repo" will create a folder on your computer with the files from this repo.
    Open this folder in Visual Studio Code.

  4. Open a command-prompt in this same folder.
    Your trainer can show you how to do this, if you need any help.

  5. Run this command to run your code:
    ./gradlew run
    NB: To remove executing progress bar, run with --console=plain, [source].

  6. Run this command to test your code:
    ./gradlew test

  7. Run this command to run cucumber tests on your code:
    ./gradlew cucumber

Commands

When the app is running the following commands can be run:

  • add player <name>- adds a player of that name. Example: add player Alice

  • print- prints the state of the league

  • record win <winner> <loser> - records the result of a match. Example: record win Alice Mike

  • winner- finds the current winner

  • save <filepath> - saves the current league to a JSON file. Example: save my_league.json

  • load <filepath> - loads a saved league from a JSON file. Example: load my_league.json

  • quit - quits the game

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •