Skip to content

Feat: Dynamic Move Function Implementation#205

Merged
ibsule merged 9 commits intosivicstudios:devfrom
Jagadeeshftw:refactor-move-function
Feb 9, 2025
Merged

Feat: Dynamic Move Function Implementation#205
ibsule merged 9 commits intosivicstudios:devfrom
Jagadeeshftw:refactor-move-function

Conversation

@Jagadeeshftw
Copy link
Contributor

Description

This PR change ensures that any player—regardless of their chosen color—can initiate and participate in the game without being constrained by a hard-coded turn order.

Related Issue(s)

Closes #202

Checklist:

  • Verified this is not a duplicate of any existing pull request

  • Performed a self-review of the code

  • Rebased to the last commit of the target branch (or merged it into my branch)

  • Linked the issues which this PR resolves

  • Documented the changes in code (API docs will be generated automatically)

@co-lead
Copy link

co-lead bot commented Feb 7, 2025

Thanks for your PR @Jagadeeshftw. It will be reviewed shortly.

@ibsule
Copy link
Collaborator

ibsule commented Feb 8, 2025

            let game_id = self.get_current_game_id();

I noticed you are getting game_id from another function. The game_id is supposed to be passed into the move() function as a parameter. get_current_game_id() only gets the total number of games created so far.

@Jagadeeshftw Jagadeeshftw force-pushed the refactor-move-function branch from 94e5cdb to c224fcb Compare February 9, 2025 05:45
@Jagadeeshftw
Copy link
Contributor Author

Updated it @0xibs

@ibsule ibsule merged commit 202c11e into sivicstudios:dev Feb 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make move() function dynamic

2 participants