I’m trying to find some code reference to create a very simple 2 players game in which you have to choose a number (between 0 and 9), the other player has to select 1 Player’s number and add a new one. Then Player 1 has to repeat de previous sequence and add a new number, and so on… If one player makes a mistake they have to start again.
More specifics on the game. Does player 1 type in the number? Select it with a click? Are later rounds based on the running total (i.e., 9, 7, 8, -> next entry should be “24” + a number) or just the last number (same example now next entry is 8 +
3 Basically you are talking about (1) managing input (UI/UX and variable storage) and (2) comparing that input to the game’s intended outcome (algorithm). These are two very different things.
If, for whatever language you want, you look at basic tutorials in UI/UX/input management and algorithms you should be able to build it.
Well, you could do this as a React (or probably vanilla JS or other framework) app. It needs to have a max # of turns but that max can probably be pretty darn high. If you look at the sample calculator app (front end projects) that already has a bunch of inputs and a display. You’d need to make modifications to the logic and display (obviously) but then also probably something visual to say whose turn it was.
This is great, as I’m starting to learn about coding is very helpful and easier to see it as a workflow, I’ll begin playing around today so thank you for your time, suggestions and the motivational!!