English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

@ 10, 5 say "Group 1"
@ 11, 5 say "presents"
@ 12, 5 say "the Jack en Poy game"
read
clear
game=0
@ 7,5 say "how many games do you want to play?" get game
read
clear
a=0
do while a player1=space(10)
@10,4 say "Paper, scissors or stone?" get player1
read
clear
player2=space(10)
@10,4 say "paper, scissors or stone?" get player2
read
clear
paper>stone
stone>scissors
scissors>paper
do case
case1 player1>player2
? "player 1 won the game!"
case2 player2>player1
? "player 2 won the game!"
endcase
a=a+1
enddo
clear
? "Thank you for playing"
wait

2006-10-21 20:33:50 · 1 answers · asked by junified.bea 1 in Computers & Internet Programming & Design

1 answers

u can't assign values with > symbol. slightly change ur program

instead of paper > stone

store the value of stone in a separate variable

public x
x = 0 (initialization in begining of program)

x = stone (the below 3 statement should be within the loop)
x = x + 1
paper = x

do the same for all other varialbe where u are trying to assign greater values of stone, scissors and paper.

any clarrification pls contact me at lakshmiteja@rediffmail.com

2006-10-23 18:48:18 · answer #1 · answered by lakshmi r 4 · 0 0

fedest.com, questions and answers