Skip to content

apischan/black-jack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#!html

1. To run the project:
    - unix: "./gradlew jettyRunWar"
    - windows "gradlew.bat jettyRunWar"

2. To run the tests use command:
    - unix: "./gradlew test"
    - windows "gradlew.bat test"

3. Tokens {userId} and {roundId} is ID of user and ID of round from database respectively. There is a user with userId=1 and round with roundID=1. Replace this tokens with numbers.

4. To place the bet use address: http://localhost:8080/black-jack/game/{userId}/bet (body of request should contain bet amount)

5. To cancel the bet use address: http://localhost:8080/black-jack/game/{userId}/bet/{roundId}/cancel

6. To perform the "deal" use address: http://localhost:8080/black-jack/game/{userId}/{roundId}/deal

7. To perform the "hit" use address: http://localhost:8080/black-jack/game/{userId}/{roundId}/hit

8. To perform the "stand" use the address: http://localhost:8080/black-jack/game/{userId}/{roundId}/stand

9. To see the result of game use the address: http://localhost:8080/black-jack/game/{userId}/{roundId}/result



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published