0 Members and 1 Guest are viewing this topic.
Merging lines and using ":" does not save any bytes of memory and slows the code down a little, so I avoid using the semicolon as a line break.Didja like my math with the string?
1→BClrHomeDisp " ROCK"," PAPER"," SCISSORSRepeat A=105Output(B,1,"}Repeat AnsGetkeyEndOutput(B,1," ;There is a space thereB+(Ans=34)-(Ans=25If A>3 Or not(Ans1+2not(AnsAns→BEndB-1→BrandInt(0,2→A"WIN!If B=3fPart((A+2)/3"LOSE.If B=A"TIE.ClrHomeDisp Ans,"CALC:","YOU:AFor(A,0,1Output(A+2,6,sub("ROCKPAPERSCISSORS",5 nCr Ans,Ans²+4BEnd
I wanted to challenge people to make one, but I wanted to keep the same graphics and stuff, so I just posted it instead But... I don't know if I should do this... Okee, I will! How about I pose this challenge. Make a Tic-Tac-Toe game that has user input, win/lose/tie detection and has AI that is more than a random number generator. Try to post the smallest version (I have a few that I liked giving out to friends at school. The calc usually won). Oh, and make it so that the user can choose if they are X versus Calc,O versus Calc, or if it is two player (X versus O).
:DelVar BClrHome:Disp " ROCK"," PAPER"," SCISSORS:Repeat A=105:Output(B+1,1,"}:Repeat Ans:getKey→A:End:Output(B+1,1," :B+sum(DeltaList(Ans={25,34:Ans-3int(Ans/3→B:End:int(3rand→A:"WIN!:If B=3fPart((A+2)/3:"LOSE.:If B=A:"TIE.:ClrHome:Disp Ans,"CALC:","YOU::A:For(A,2,3:Output(A,6,sub("ROCKPAPERSCISSORS",5 nCr Ans,Ans2+4:B:End