Share your repls and programming experiences

← Back to all posts
A quick game that's impossible to win: doctor Nim
HarryPengRHS

This is a very old math game. however the way I've coded the program made it impossible for you to win!

Voters
matsogeum8
HarryPengRHS
Comments
hotnewtop
BrutalBucket

I changed the number to 21 and I won!

BrutalBucket

Umm this computer once drew a four
what a cheater

LizFoster

Ha ha, that's fun. I like the name touch. I input "Lizzy Foster" and it called me just "Lizzy." Good work!

HarryPengRHS

@LizFoster Yes! I feel like that might make people feel more welcomed!

LizFoster

@HarryPengRHS Yeah, it feels much cooler, since most times programs that ask for usernames just copy over the entire string. Also, as a little side note, if you say you'll take 0, it says that the other person takes 4, but it obviously can't work the other way around. Just a little annoyance, if you want to fix it I suggest making it so that if the user takes none, the computer takes none too. Obviously it's up to you though, so do as you wish, ha ha.

LizFoster

@HarryPengRHS Oh yes, and as a final note (if you are still interested), I found an incredible website for learning Python: https://www.w3schools.com/python/

SilentShadowBla

im pretty sure there is meant to be 21 that's why we always lose LMAO