Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = {}
- for x = 1, 2 do
- t[x] = {}
- for y = 1, #n do
- t[x][y] = n[y]
- end
- end
- p1 = math.random(#n) --if your first opponent is random, otherwise just set it to 1
- local opponent = {}
- for i = 1, #n do
- if i ~= p1 then
- table.insert(opponent, i)
- end
- end
- p2 = opponent[math.random(#opponent)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement