Created
March 20, 2014 00:02
-
-
Save muZk/9654391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open BibliotecaT0 | |
| open System | |
| [<EntryPoint>] | |
| let main argv = | |
| let interfaz = new Interfaz() | |
| System.Console.Write("Solo llego aquí si he abierto un archivo\n") | |
| // Guardar datos del archivo | |
| let tablero = interfaz.GetTablero | |
| let tablero_final = interfaz.GetTableroFinal | |
| // Tienes que calcular las jugadas, una vez las tengas | |
| // debes hacer las jugadas con un for | |
| let filas = Array2D.length1(tablero) | |
| let columnas = Array2D.length2(tablero) | |
| // Así se recorre un arreglo | |
| // Aquí imprimo en consola el tablero | |
| for f in 0..filas-1 do | |
| for c in 0..columnas-1 do | |
| System.Console.Write(tablero.[f, c]) | |
| System.Console.Write("\n") | |
| 0 // Sin esto tira error. Es como pa decir que se cerró bien el programa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment