I’m very new to this and I feel stupid but I can’t for the love of me find what the mistake is in this code
also I’m not sure how to quote it correctly so sorry!
i get “missing ) after argument list”
Int aichoice;
boolean AIpaper;
boolean AIrock;
boolean AIscissors;
boolean PlayerRock;
boolean PlayerPaper;
boolean PlayerScissors;
void setup(){
background(254,251,251)
textSize(35,35)
fill(0,0,0)
text("Would you like to play a game?",10,50);
}
void draw(){
fill(255,255,255)
rect(50,150,75,100)
fill(122,122,122)
ellipse(250,200,100,100)
fill(214,201,201);
rotate(3.0,3.0);
rect(300,290,100,25)
fill(255,215,0)
ellipse(300,280,50,50)
fill(255,255,255)
ellipse(300,280,30,30)
fill(255,215,0)
ellipse(300,320,50,50)
fill(255,255,255)
ellipse(300,320,30,30)
}
set aichoice = random(1,4);
if(aichoice = 1){
set AIpaper = true;
}
if(aichoice = 2){
set AIrock = true;
}
if(aichoice = 3){
set AIscissors = true;
}
if(keypressed){
if(key = '1'){
set PlayerPaper = true;
}
}
if(keypressed){
if(key = '2'){
set PlayerRock = true;
}
}
if(keypressed){
if(key = '3'){
set PlayerScissors = true;
}
}
if((AIpaper = true) && (PlayerPaper = true)){
text("Tie!",30,50);
}
if((AIpaper = true) && (PlayerRock = true)){
text("Sorry, you lose!",30,50);
}
if((AIpaper = true) && (PlayerScissors = true)){
text("Win!!!",30,50);
}
if((AIrock = true) && (PlayerPaper = true)){
text("Win!!!",30,50);
}
if((AIrock = true) && (PlayerRock = true)){
text("Tie!",30,50);
}
if((AIrock = true)&& (PlayerRock = true)){
text("Sorry, you lose!",30,50);
}
if((AIscissors = true) && (PlayerRock = true)){
text("Win!!!",30,50);
}
if((AIscissors = true) && (PlayerPaper = true)){
text("Sorry, you lose!" 30,50);
}
if((AIscissors = true) && (PlayerScissors = true)){
text("Tie!",30,50);
}