Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Implement Game #6

Open
Jammyjamjamman opened this issue Nov 7, 2020 · 0 comments
Open

Implement Game #6

Jammyjamjamman opened this issue Nov 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Jammyjamjamman
Copy link
Contributor

The game is still not fully implemented. Here's what's missing/ incomplete:

  • The state of the game. It does not track who plays next, what their options are and when the game ends. Also
  • Ways of progressing the game A way this could be implemented is by adding a function which takes the next step (e.g. bet, call or fold) as an argument. This will progress the game state and return "success" or "fail", depending on whether the next step is valid or not.
  • Way to get the game's current state. This includes the current pot, the round, who goes next and their options. This could be a function or just direct access to the game struct params.

Current code for the game state: https://github.com/TelluricDeckay/telluricdeckay/blob/trunk/src/game.rs
code for players: https://github.com/TelluricDeckay/telluricdeckay/blob/trunk/src/player.rs

The game state function has code for a "round". The function gives a good start for getting the idea of the logic, but isn't enough to implement a full game.

@Jammyjamjamman Jammyjamjamman added the enhancement New feature or request label Nov 7, 2020
@andy5995 andy5995 changed the title feat/implement-ice: Implement Game Implement Game Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant