Hello there
@IntelDS
Amateur coder and student. I like hard code challenges.
For some reason, line 15 throws up an error when I try to do x+=1 even though I have already given x a value on line 3. I tried looking this up and I
Python
tankerguy1917 Hmm, I don't know what's wrong. Maybe try
return x
at the end of the movecheck function?
Hope this helps :)2 years ago
So I decided to start with battlesnake but it seems every time I start the repl it says 'no module found'
Bash
RYANTADIPARTHI
try installing again. pip install CherryPy. If it still doesn't work, then it's probably not available in repl.it2 years ago
Coder100 Try this:
This is the .replit file btw
language = "python3"
run = "pip install ; python server.py"
`2 years ago
So... I wanted to write a small game for a friend as a gift but it seems that I've screwed it up. It isn't detecting what you input, just goes to the
Python
KHZ @IntelDS Python doesn't detect bool statements like start == "X" or "x" you will have to write it in a systematic way like this start == "X" or start == "x". Python will not recognise the first way of writing statements.2 years ago
So I started this about a day ago and the code just doesn't work for me.
The code acts all OK until someone is supposed to win, then it doesn't actual
Python
RYANTADIPARTHI While loops
One of your problems is you are running two while True loops, which runs forever. And once it breaks out of one. without checking the break of the other, it repeats to player two, even when somebody has won.
Try limiting them, and try not to put so many if conditions. see if that works.2 years ago
KHZ @IntelDS You should try to limitize your if else statements first of all. Now I think the problem is that there are two While Loops running so after player 1 defeats the other player it breaks out of the player 1's loop and then goes on to player 2's loop so i think you should add a break function between the two players loop and after player2's loop so it breaks out of the outer loop after a players turn.2 years ago
Hey everyone! this is just a simple airport that my friend and I work on every so often.
PLANNED:
-Map w/ commands to move around
-Better boarding pa
Python