SHOW:
|
|
- or go back to the newest paste.
| 1 | rednet.open("back")
| |
| 2 | nb=0 | |
| 3 | choix1=0 | |
| 4 | choix2=0 | |
| 5 | choix3=0 | |
| 6 | choix4=0 | |
| 7 | choix5=0 | |
| 8 | choix6=0 | |
| 9 | choix7=0 | |
| 10 | choix8=0 | |
| 11 | pla=0 | |
| 12 | - | print("joueur 1")
|
| 12 | + | |
| 13 | - | joueur1=read() |
| 13 | + | |
| 14 | - | print("joueur 2")
|
| 14 | + | |
| 15 | - | joueur2=read() |
| 15 | + | |
| 16 | - | print("jo |
| 16 | + | |
| 17 | --nb=nb+1 | |
| 18 | --print("joueur "..nb)
| |
| 19 | --joueur=read() | |
| 20 | ||
| 21 | --end | |
| 22 | ||
| 23 | if (joueur=="1") then | |
| 24 | print("joueur 1")
| |
| 25 | joueur1=read() | |
| 26 | end | |
| 27 | ||
| 28 | if (joueur=="2") then | |
| 29 | print("joueur 1")
| |
| 30 | joueur1=read() | |
| 31 | print("joueur 2")
| |
| 32 | joueur2=read() | |
| 33 | end | |
| 34 | ||
| 35 | if (joueur=="3") then | |
| 36 | print("joueur 1")
| |
| 37 | joueur1=read() | |
| 38 | print("joueur 2")
| |
| 39 | joueur2=read() | |
| 40 | print("joueur 3")
| |
| 41 | joueur3=read() | |
| 42 | end | |
| 43 | ||
| 44 | if (joueur=="4") then | |
| 45 | print("joueur 1")
| |
| 46 | joueur1=read() | |
| 47 | print("joueur 2")
| |
| 48 | joueur2=read() | |
| 49 | print("joueur 3")
| |
| 50 | joueur3=read() | |
| 51 | print("joueur 4")
| |
| 52 | joueur4=read() | |
| 53 | end | |
| 54 | ||
| 55 | if (joueur=="5") then | |
| 56 | print("joueur 1")
| |
| 57 | joueur1=read() | |
| 58 | print("joueur 2")
| |
| 59 | joueur2=read() | |
| 60 | print("joueur 3")
| |
| 61 | joueur3=read() | |
| 62 | print("joueur 4")
| |
| 63 | joueur4=read() | |
| 64 | print("joueur 5")
| |
| 65 | joueur5=read() | |
| 66 | end | |
| 67 | ||
| 68 | if (joueur=="6") then | |
| 69 | print("joueur 1")
| |
| 70 | joueur1=read() | |
| 71 | print("joueur 2")
| |
| 72 | joueur2=read() | |
| 73 | print("joueur 3")
| |
| 74 | joueur3=read() | |
| 75 | print("joueur 4")
| |
| 76 | joueur4=read() | |
| 77 | print("joueur 5")
| |
| 78 | joueur5=read() | |
| 79 | print("joueur 6")
| |
| 80 | joueur6=read() | |
| 81 | end | |
| 82 | ||
| 83 | if (joueur=="7") then | |
| 84 | print("joueur 1")
| |
| 85 | joueur1=read() | |
| 86 | print("joueur 2")
| |
| 87 | joueur2=read() | |
| 88 | print("joueur 3")
| |
| 89 | joueur3=read() | |
| 90 | print("joueur 4")
| |
| 91 | joueur4=read() | |
| 92 | print("joueur 5")
| |
| 93 | joueur5=read() | |
| 94 | print("joueur 6")
| |
| 95 | joueur6=read() | |
| 96 | print("joueur 7")
| |
| 97 | joueur7=read() | |
| 98 | end | |
| 99 | ||
| 100 | if (joueur=="8") then | |
| 101 | print("joueur 1")
| |
| 102 | joueur1=read() | |
| 103 | print("joueur 2")
| |
| 104 | joueur2=read() | |
| 105 | print("joueur 3")
| |
| 106 | joueur3=read() | |
| 107 | print("joueur 4")
| |
| 108 | joueur4=read() | |
| 109 | print("joueur 5")
| |
| 110 | joueur5=read() | |
| 111 | print("joueur 6")
| |
| 112 | joueur6=read() | |
| 113 | print("joueur 7")
| |
| 114 | joueur7=read() | |
| 115 | print("joueur 8")
| |
| 116 | joueur8=read() | |
| 117 | end | |
| 118 | joueurdiv = joueur/2 | |
| 119 | while pla>=4 do | |
| 120 | tirage = math.random(1,joueur) | |
| 121 | ||
| 122 | print("equipe rouge")
| |
| 123 | ||
| 124 | if ((tirage==1)and(choix1~=1)) then | |
| 125 | print(joueur1) | |
| 126 | choix1=1 | |
| 127 | pla=pla+1 | |
| 128 | end | |
| 129 | if ((tirage==2)and(choix2~=1)) then | |
| 130 | print(joueur2) | |
| 131 | choix2=1 | |
| 132 | pla=pla+1 | |
| 133 | end | |
| 134 | if ((tirage==3)and(choix3~=1)) then | |
| 135 | print(joueur3) | |
| 136 | choix3=1 | |
| 137 | pla=pla+1 | |
| 138 | end | |
| 139 | if ((tirage==4)and(choix4~=1)) then | |
| 140 | print(joueur4) | |
| 141 | choix4=1 | |
| 142 | pla=pla+1 | |
| 143 | end | |
| 144 | if ((tirage==5)and(choix5~=1)) then | |
| 145 | print(joueur5) | |
| 146 | choix5=1 | |
| 147 | pla=pla+1 | |
| 148 | end | |
| 149 | if ((tirage==6)and(choix6~=1)) then | |
| 150 | print(joueur6) | |
| 151 | choix6=1 | |
| 152 | pla=pla+1 | |
| 153 | end | |
| 154 | if ((tirage==7)and(choix7~=1)) then | |
| 155 | print(joueur7) | |
| 156 | choix7=1 | |
| 157 | pla=pla+1 | |
| 158 | end | |
| 159 | if ((tirage==8)and(choix8~=1)) then | |
| 160 | print(joueur8) | |
| 161 | choix8=1 | |
| 162 | pla=pla+1 | |
| 163 | end | |
| 164 | end | |
| 165 | end |