Skip to content

Conversation

@jonty007
Copy link
Collaborator

@jonty007 jonty007 commented Apr 16, 2025

Chess App that's complete P2P
Typescript upgrade which fixes the long term related to Lib build
Removed chess server

Copy link
Collaborator

@ltardivo ltardivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, we can add the description of the PR and maybe rename it, since here we are removing the chess-server

@jonty007 jonty007 changed the title Feat/claim tx with operator Feat/claim tx without operator complete P2P Jun 8, 2025
Copy link
Contributor

@ClemensLey ClemensLey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@ClemensLey
Copy link
Contributor

When the white player creates the game link, to be sent to the black player, we should update the text in the modal as follows: "Share this link with your opponent to start the game." -> "Share this link with the black player. The black player will get back to you with the final game link."

@jonty007
Copy link
Collaborator Author

The sign-in button doesn't work the second time

@jonty007
Copy link
Collaborator Author

jonty007 commented Jun 10, 2025

update the message to ask user (add link to my-games page) to release fund from the /users page if the release-fund action failed

{data.winnerPubKey === data.userPubKey
? `Congratiolations! You have won the game. `
? `Congratulations! You have won the game. `
: `Sorry! You have lost the game. `}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • When a player lose the game, we should invite him/her to the my-games page to release the funds.
  • Also, we need a way to go to the my-games page, maybe from the left panel or from any place you think.

requestRelease,
releaseFund,
)
// !game ? (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this commented code not needed anymore?

? `${chessContract.satoshis / BigInt(1e8)} ${computer.getChain()}`
: 'Loading...'}
</td>
<td>{game ? getGameState(game) : 'Loading...'}</td>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a typescript error here:

src/components/MyGames/index.tsx:157:32 - error TS2345: Argument of type 'Chess' is not assignable to parameter of type 'ChessContract'.
  Type 'Chess' is missing the following properties from type 'ChessContract': satoshis, nameW, nameB, publicKeyW, and 10 more.

157       <td>{game ? getGameState(game) : 'Loading...'}</td>
                                   ~~~~
                                   ````

@jonty007 jonty007 changed the base branch from main to staging June 30, 2025 16:52
@jonty007 jonty007 closed this Jul 3, 2025
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.

4 participants