Code Builder is a game where players take turn adding 1 line of code to the code. The language is python. Once someone makes an error, we restart.
Here’s the starting code:
print("Welcome to the game!")
Code Builder is a game where players take turn adding 1 line of code to the code. The language is python. Once someone makes an error, we restart.
Here’s the starting code:
print("Welcome to the game!")
They did add a new rule, though:
Oh whoopsies, I didn’t see that XD!
I’ll continue:
color = (input("Let's play a game of chess. Do you want to be white or black (Wb)? ") + "W")[0].lower() == "w"
print("Welcome to the game!")
color = (input("Let's play a game of chess. Do you want to be white or black (Wb)? ") + "W")[0].lower() == "w"
if color:
#...
print("You'll play as ", "white." if color else "black.", "Let's start the game!")
print("Welcome to the game!")
color = (input("Let's play a game of chess. Do you want to be white or black (Wb)? ") + "W")[0].lower() == "w"
if color:
print("You'll play as white.")
else:
print("You'll play as black.")
print("Let's start the game!")
def playerMove():
pieceToMove = input("Which piece do you want to move?")
@python660 your turn
if pieceToMove:
processMove(pieceToMove)
else:
print("Invalid move")
print("Welcome to the game!")
color = (input("Let's play a game of chess. Do you want to be white or black (Wb)? ") + "W")[0].lower() == "w"
if color:
print("You'll play as white.")
else:
print("You'll play as black.")
print("Let's start the game!")
def playerMove():
pieceToMove = input("Which piece do you want to move?")
if pieceToMove:
processMove(pieceToMove)
else:
print("Invalid move")
@python660 You made an error there’s no function called “process move”
so we restart
print("早上好中国,我有病敕令,但是《速度与激情久》我最喜欢。所以,现价适应月时间,一二三:两个礼拜以后,《速度与激情久》,两个礼拜以后,《速度与激情久》。不要忘记,不要错过,记得去电影院看《速度与激情久》因为非常好电影动作非常好,差不多一样病敕令;再见")
now back to you
是冰淇淋。Literally just run that on google translate lolz
whoops, i included some homophones in there, so now I’m technically talking about ice cream, sickness, Fast and Furious 9, and adaptive pricing.
haha I'm gonna make an error so we restart B)
edit: oh I didn’t realize how old this was
hmm, is it considered necroposting then? (Lol Just kidding)
Btw:
from replit2 import db_starter # my package
Might as well continue it now, right?
from replit2 import db_starter # python660's package
import firepup650 as fp # You can guess whose package :)
db = __import__("replit2").db.start(backup_mode=30) # DB with backup every 30 seconds.
are comments allowed?
30 Seconds seems a bit excessive, but okay.
db = __import__("replit2").db.start(backup_mode=30) # DB with backup every 30 seconds.
sql = __import__("firepup650").sql("db") # SQL DB :)
db = __import__("replit2").db.start(backup_mode=30) # DB with backup every 30 seconds.
sql = __import__("firepup650").sql("db") # SQL DB :)
from flask import Flask, render_template, redirect, request, session, flash # can't remember any more important functions. Also why aren't you guys using the normal import?
I guess I’m late, but how about this
app = Flask(__name__)