Problems with current implementation

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

This lesson preview is part of the newline's Introduction to Privacy on Ethereum course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to newline's Introduction to Privacy on Ethereum, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course newline's Introduction to Privacy on Ethereum
  • [00:00 - 00:28] Okay, so now that we have a version of the game, we can look at what are the drawbacks of this. And you would have correctly guessed all thought about that. The biggest problem with this is that once a player has played the move, the last player or the second player always gets the advantage, because they can see what the first player played and then they can respond accordingly.

    [00:29 - 01:40] So the second player will always win regardless of whatever the move the first player will play because they will know what they're playing the game. And this is because their values are directly just 1, 2 and 3. So this is one of the problems that one of the assumption of this is that they all are playing simultaneously, which is not a very real assumption. So we have to do something to avoid that and to basically say that the first player should not be able to tell the move of the second player. And sorry, the second player should not be able to tell the move of the first player. And we will look at how to do this in the next lesson, but I want you to also see what other improvements we can make. So look at how we can improve this further and basically not give that advantage to something and will improve upon this in an iterative fashion. So let's see how we can do that.