Add OtherPlayer table for finding the opposite player

This commit is contained in:
AJ Kelly
2012-01-12 22:04:11 -06:00
parent 6ecafcf4bd
commit 3c0d54d834
+1
View File
@@ -21,6 +21,7 @@ end
PLAYER_1 = "PlayerNumber_P1"
PLAYER_2 = "PlayerNumber_P2"
NUM_PLAYERS = #PlayerNumber
OtherPlayer = { [PLAYER_1] = PLAYER_2, [PLAYER_2] = PLAYER_1 }
function string:find_last(text)
local LastPos = 0