Sharp PC1360 Taschencomputer
 

 Sharp PC1360

Superhirn (Mastermind) - Listing


Javascriptprogramm
Dokumentation
Programmspeicher-Image laden


010"S" CLS : WAIT 0
020CLEAR : PRINT "***** SUPERHIRN *****": INPUT "N(orm.) / P(rof.) ? ";X$
030IF X$="P" LET Y=1: GOSUB "PROF"
040IF X$="N" GOSUB "NORM"
050PRINT "": PRINT " *** BUSY ***"
060Z=0
070FOR P=1 TO 4+Y: LET A(P)=RND (6+2*Y): NEXT P
080IF A=BOR A=COR A=DOR A=E LET A=RND (6+2*Y): GOTO 80
090IF B=AOR B=COR B=DOR B=E LET B=RND (6+2*Y): GOTO 90
100IF C=AOR C=BOR C=DOR C=E LET C=RND (6+2*Y): GOTO 100
110IF D=AOR D=BOR D=COR D=E LET D=RND (6+2*Y): GOTO 110
120IF E=AOR E=BOR E=COR E=D LET E=RND (6+2*Y): GOTO 120
130Z=Z+1: W=0: S=0
140CLS
150FOR P=6 TO 9+Y: PRINT "Farbe ";STR$ (P-5): INPUT A$(P): NEXT P
160CLS : PRINT "": PRINT " *** BUSY ***"
170FOR P=11 TO 14+Y: V$=LEFT$ (A$(P-5),2)
180IF V$="BR" LET A(P)=1: GOTO 270
190IF V$="RO" LET A(P)=2: GOTO 270
200IF V$="OR" LET A(P)=3: GOTO 270
210IF V$="GE" LET A(P)=4: GOTO 270
220IF V$="GR" LET A(P)=5: GOTO 270
230IF V$="BL" LET A(P)=6: GOTO 270
240IF V$="SC" LET A(P)=7: GOTO 270
250IF V$="WE" LET A(P)=8: GOTO 270
260CLS : PAUSE "Eingabefehler !": GOTO 140
270NEXT P
280FOR Q=1 TO 4+Y: FOR R=11 TO 14+Y
290IF A(Q)=A(R) LET W=W+1
300NEXT R
310IF A(Q)=A(Q+10) LET S=S+1: W=W-1
320NEXT Q
330IF S=4+Y PAUSE "Erraten im ";Z;" Versuch !": GOTO 60
340CLS : PRINT STR$ S;" Schwarze !": WAIT : PRINT STR$ W;" Weisse !": WAIT 0: GOTO 130
350"PROF"PRINT "*** PROFESSIONAL ***": PRINT "5-er-Kombination": PRINT "ohne Doppelte"
360WAIT : PRINT "mit 8 Farben :": PAUSE "Schwarz (SC)": PAUSE "Weiss (WE)"
370PAUSE "Braun (BR)": PAUSE "Rot (RO)": PAUSE "Orange (OR)": PAUSE "Gelb (GE)"
380PAUSE "Gruen (GR)": PAUSE "Blau (BL)": WAIT 0: CLS : RETURN
390"NORM"PRINT "**** NORMAL ****": PRINT "4-er-Kombination": PRINT "ohne Doppelte"
400WAIT : PRINT "mit 6 Farben :": GOTO 370
410END


Javascriptprogramm
Dokumentation
Programmspeicher-Image laden



Zur Übersichtstabelle



Home
Falls diese Seite ohne Navigationsleiste angezeigt wird, aktivieren Sie Javascript oder klicken Sie hier!