Original Post
hi im having a problem with a realy simple piece of code. Its sad and frustrating. im making a noughts and crosses game for my yr 11 programming project. the problem is that my program wont change the players turns from player 1 to player 2. what ive done is set up a system where ive created a variable called turn (which goes up by 1 everytime a player makes a move) and what im doing is if the number is even then its player 1's turn but if its odd then its player 2's turn. Simple, i know! it wont work. so my question is: is there a EVEN command? or an ODD command? here is that snippet of code: Private Function DeterminTurn(ByVal turn As Integer) As Boolean If turn / 2 = 0 Or 2 Or 4 Or 6 Or 8 Or 10 Then DeterminTurn = True pic_ShowWhosTurn.Image = Image.FromFile(Application.StartupPath & "\Visual basic\Nought" & ".bmp") Else : DeterminTurn = False pic_ShowWhosTurn.Image = Image.FromFile(Application.StartupPath & "\Visual basic\Cross" & ".bmp") End If End Function Is the OR command what i think it is? cos i wasnt tought it, i found it by accident. so any help would be realy appreciated.