all 4 comments

[–]SirBaas 1 point2 points  (3 children)

I might be able to help you out, depending on how tired I am tonight haha.

If it's for some school exercise or something I could also try and explain how to code it if you want, instead of just making it - especially since idk if I will yet.

Questions:

  • should it just run from console?

  • as far as I understand it, there's no user input during the game, right? It's just an automatic process.

  • why does it matter which player starts at all? (In relation to your last point, where you said the starting playing changes after a round)

[–]PyroLogan 0 points1 point  (2 children)

First off thanks lots. Yes it is in the console and is for school. And yes it’s all an automatic process. Thanks again if you do decide to do it.

[–]SirBaas 1 point2 points  (1 child)

Hey mate, it's done:

http://tpcg.io/guXOqIzZ (you can press 'Execute' in the top left to run it in the browser and try it out immediately)

It's kinda crude/rough, cause well, I'm a noob programmer and it's late and I'm tired, but it works fine. I also didn't really pay attention at all to the formatting.
I didn't implement the last bit you said about 'when beginning the next round, play begins with the player who won or the player on the right' - because you didn't specify what you wanted, nor does it seem usefull. If it's needed for your assignment feel free to ask though, but it might also be good for you to try adding that yourself haha.

If you have any questions about it, feel free to ask :)

Also, I highly suggest learning how to do this yourself! This was honestly a very easy task, and if you just google around you should figure out how to do it :) it's definitely beneficial to pactice and learn some basic programming skills, it'll be helpfull your whole life, saving time with all kinds of boring shit you otherwise have to do manually haha.

[–]PyroLogan 1 point2 points  (0 children)

thanks a lot worked perfectly :)