Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. private void cargarCrucigrama( File archivoCrucigrama ) throws Exception
  2. {
  3. // Cargar las letras del archivo de propiedades
  4. Properties infoCrucigrama = new Properties( );
  5. InputStream inputLetras = new FileInputStream( archivoCrucigrama );
  6.  
  7. int columnas = Integer.parseInt( infoCrucigrama.getProperty( "crucigrama.columnas" ) );
  8. int filas = Integer.parseInt( infoCrucigrama.getProperty( "crucigrama.filas" ) );
  9. int verticales = Integer.parseInt( infoCrucigrama.getProperty( "crucigrama.palabrasVerticales" ) );
  10. int horizontales = Integer.parseInt( infoCrucigrama.getProperty( "crucigrama.palabrasHorizontales" ) );
  11.  
  12. letras = new Letra[columnas][filas];
  13.  
  14. palabrasVerticales = new ArrayList( );
  15. for( int i = 1; i <= verticales; i++ )
  16. {
  17. String palabrasVerticales = infoCrucigrama.getProperty( "" + i );
  18.  
  19. }
  20. palabrasHorizontales = new ArrayList( );
  21. for( int i = 1; i <= horizontales; i++ )
  22. {
  23. String palabrasHorizontales = infoCrucigrama.getProperty( "" + i +"" );
  24.  
  25.  
  26. }
  27. descripcionV = new ArrayList ();
  28. for (int i = 1;i<=verticales;i++)
  29. {
  30.  
  31. }
  32. descripcionH = new ArrayList ();
  33. for (int i = 1;i<=horizontales;i++)
  34. {
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement