Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mervyn-mccreight/kotlin-rps
A simulation of 100 games of rock-paper-scissors written in Kotlin.
https://github.com/mervyn-mccreight/kotlin-rps
gradle kata kotest kotlin rock-paper-scissors
Last synced: 5 days ago
JSON representation
A simulation of 100 games of rock-paper-scissors written in Kotlin.
- Host: GitHub
- URL: https://github.com/mervyn-mccreight/kotlin-rps
- Owner: mervyn-mccreight
- Created: 2018-11-02T18:02:34.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T18:11:05.000Z (3 months ago)
- Last Synced: 2024-08-26T21:21:15.209Z (3 months ago)
- Topics: gradle, kata, kotest, kotlin, rock-paper-scissors
- Language: Kotlin
- Homepage:
- Size: 355 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# README
## General information
A simulation of 100 rock-paper-scissors games with one player always choosing rock and the other player choosing
randomly with a print to the console of the simulation results - written in Kotlin.## Gradle
This project uses [gradle](https://gradle.org/) as the build tool. If you do not have an installation of gradle on your
local machine, you can always use the provided gradle-wrapper(`gradlew`) instead (e.g. instead of
running `gradle clean build` you could run `./gradlew clean build` to use the wrapper).## Usage
### Run simulation using gradle
To run a simulation execute `gradle run`. This will run the application.
### Building and running application manually
1) Run a `gradle installDist` package a ready-to-use version of the application
2) Go to the `./build/install/kotlin-rps/bin` folder and execute `kotlin-rps` to run a simulation### Invoking the main-method in an IDE
Run `RPS::main`.
## Tests
Run `gradle test` to run all verifications.