Share your repls and programming experiences

← Back to all posts
Battleships
AdamSmith6

import random
rows = 8#amount of rows
collumns = 8 #amount of collumns
chests = 11 #amounts of chests
bandits = 5#amount of bandits
goldCoins = 0#amount of coins but changes as player picks up a chests
totalMoves = 0
playerVSP = collumns -1
playerHSP = 0
PVP = playerVSP
PHP = playerHSP
print('WELCOME-TO-TREASURE-HUNT!')
option = input('Press 1 to start the game or 0 to end the game.')
if option == "1":
print("You have chosen to play the game")

elif option == "0":
exit()

else:
print("incorrect entry")

Voters
sarahulleberg05
AdamSmith6