Advertisement
jsbsan

insertar ficha en tablero

Oct 4th, 2013
3,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.31 KB | None | 0 0
  1. Public Function insertaficha(columna As Integer, jugador As Integer) As Boolean
  2.  
  3.   Dim ok As Boolean = False
  4.   Dim i As Integer
  5.  
  6.   For i = 6 To 0 Step -1
  7.     If Me.casillas[i, columna] == 0 Then
  8.       Me.casillas[i, columna] = jugador
  9.       ok = True
  10.       Break
  11.     Endif
  12.   Next
  13.  
  14.   Return ok
  15.  
  16. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement