-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make move()
function dynamic
#202
Comments
I'd like to work on this task. ETA 2 days. |
Can I work on this please @0xibs |
Hello My name is SuperFranky. I am an OD diamond contributor, frontend and blockchain developer with over 3+ years of experience and have contributed to a variety of interesting projects in the Web3 space. My expertise in React, Next.js, Solidity, Cairo, responsive design, and an array of other programming languages makes me confident in delivering high-quality solutions. I'd love to tackle this issue. |
@Jagadeeshftw is |
Yes @emarc99, make sure you followed the prerequisites mentioned in README.md |
@Jagadeeshftw just to confirm, are you running the latest code in |
In the latest code, it seems to be not compiling @0xibs |
|
@Jagadeeshftw try pulling from |
Not compiling still. Seems less errors than before. |
Can you debug the error? I think it should be related to a misplaced comma or semi-colon or something similar in the models |
Yes, I have noticed misplaced curly brackets as well. Didn't want to break something without permission. |
@0xibs I have fixed those errors, shall i push my changes? |
Sure 💯 |
move()
function is located ingame_actions.cairo
.move()
function is executed, it determines which player position it should move using the sequence: R => G => Y => B. This enforces the first player of the game to be Red (R), which is problematic because players can choose any color when joining the game, and also any player can start the game.Expectations
move()
function should take into account the player that makes the call, and use the player's username to determine the move to make.move()
function to reflect the changes made.move()
function or extract the username using theget_username_from_address()
utility function. You can get the address using theget_caller_address()
function.ETA: 2 days
The text was updated successfully, but these errors were encountered: