Tag Archives: #PROJECT

#PROJECT #TC1017

1017

Se nos pidió realizar un programa el cual se basara en la realización de un sudoku. Mitzi y yo optamos por tomar el código que ken nos brindó amablemente para trabajar en el. Básicamente nuestro trabajo se basó en realizar funciones que checaran si lo que el usuario iba introduciendo era válido o era erroneo, Se crearon 4 funciones las cuales en la primera en la llamada n_check se valoraba los valores introducidos y guardados en row y column, mientras que estos valores fueran menores a BOARDSIZE (tamaño del sudoku) regresara true y que el programa siguiera corriendo, en caso contrario que desplegara un mensaje. En la segunda se evaluan solamente las filas, esto quiere decir que si el usuario ingresa un numero que ya esté en la misma línea el programa desplegará un mensaje y dirá que no se puede introducir ese número. En la 3a función es básicamente la misma que la 2a, sin emabrgo ahora las columnas son las evaluadas. En la 4a función fue donde tuvimos un poco más de dificultad, sin embargo nuestra compañera Aurora y Juan Pablo nos brindaron ayuda con su código y después de analizarlo llegamos a la respuesta y pudimos realizar un nuevo código para nuestro sudoku. La función principal que realiza esta es validar si existe otro numero igual al que se desea escribir en el cuadrante. Si es verdadero, no existe ningún número igual, el programa continua normal, en caso contrario el programa imprime un mensaje diciendo que no se puede escribir ese número. En nuestro programa principal tuvimo algunas complicaciones con los detalles de los colores, sin embargo despues de investigar e ir con Ken nos facilitó un código, el cual dependiendo del color que se desee se usa un número específico. Creo que este programa nos enseñó bastante, creo que es una muy buena actividad para aprender nuevas cosas. Creo que sin el programa no hubieramos entendido cómo se lee un archivo externo, ni cómo se usan los colores. Así pues se enriqueció nuestra experiencia. Creemos también que el trabajo en equipo es algo fundamental en este tiempo, ya que sin ayuda de compañeros, páginas webs como stackoverflow, cplusplus.com, el libro que ken y la ayuda que ken nos proporcionó no hubieramos realizado el sudoku. Especialmente creemos que la parte más difícil en todo este proceso fue la realización de la función quadrant, ya que apesar de estar sencilla tuvimos que ingenierlas para realizarla de la manera más fácil posible. 

 

 

LINKS:

https://www.youtube.com/watch?v=NgbHKt5pssE

https://www.youtube.com/watch?v=YIX7UhIKEIk

stackoverflow.com

cplusplus.com

github (AuroraJuanPablo)

http://www.greenteapress.com/thinkcpp/

KEN THOUGHTS

 

GITHUB LINK:

https://github.com/kenwbauer/PabloMitzi

Sudoku

We are almost done with the final project, but we had a little set back with the board printing, so we talked to Ken today, so that we could get some questions answered on regards to our code. He will check out our code and tell us what we are missing so that we can get a good grade on this .

1017

I’ll include our Github link so that you can check what Alan and I have been doing.

https://github.com/kenwbauer/SalvadorAlan

Proyecto Final – SUDOKU

1017

El proyecto final de la materia consiste en la programación de un juego de Sudoku; para poder realizarlo tuvimos que aplicar TODOS los conocimientos aprendidos durante el curso, desde el uso de cout hasta la implementación de vectores y lectura de archivos.

Para explicar más el proceso de la elaboración del Sudoku hice un video en el cual detallo cada acción involucrada en el desarrollo del juego. Aquí puedes encontrar el video:

https://youtu.be/5uSVZKGnAvM

Así mismo, en el siguiente link puedes ver el código del Sudoku:

https://github.com/kenwbauer/HectorTania/blob/master/sudoku.cpp

Finalmente, utilizamos las siguientes páginas para obtener información sobre el Sudoku:

http://platea.pntic.mec.es/~ablanco/gi/tecnicasudoku.htm

http://www.kakuro.com.ar/historia-sudoku.htm

¡Bonito día! 🙂

Final Project’s Final Post

Hello, World!

This is my final post about the 1017 Final Project: A Sudoku game.

At the beginnig, I was very nervous about it, because I thought it would be very difficult. But, while we were working on it, I realize it wasn’t that hard and from this point, it just go easy.

One of the things I liked most, is working with Aurora, because she is a close friend and I know this is not her strong area, but even though that, she did her best to carry out the project. I’m proud of being her partner.

About the poject itself, I enjoy making it. It felt pleased to realize that I can do a programm to solve almost every problem or activity that I find in my life, from simple logic games to machines working programms. Also, after taking this class, I enjoy every time I think how work a machine or a software and I can answer that whit a code in C++. It’s very satisfying.

In conclussion, this project was very exciting and I enjoy a lot making it. 

Here is the code to the final version of the the programm. Enjoy it:

https://github.com/kenwbauer/AuroraJuanPablo/blob/master/sudoku.cpp

Final Project

1017

This final project was a great experience to use lots of funtions, loops, conditionals, vectors and arrays.  Everything that we learned through out the semester was really helpful to connect the ideas of the boardgame with functions that helped the user interact with the program.

We started our project by creating a sudoku board which was given in a text file. After giving the paramters to the program (from the text file) we desided to change some things from the board such as a row and a column of numbers for the user to give of the coordenates of the numbers inside the board. The purpose was to create a sudoku game, with enough functions to be able to write on it, erase from it (just the numbers given by the user), print the board as many times the user wanted to, restart the game as many times the function was called and also be able to quit the game. 

For the text format from the board, we used a series of conditionals including string files, using the numbers from the text file to add lines to it.
Originally the file was like this:

5 3 0 0 7 0 0 0 0

6 0 0 1 9 5 0 0 0

0 9 8 0 0 0 0 6 0

8 0 0 0 6 0 0 0 3

4 0 0 8 0 3 0 0 1

7 0 0 0 2 0 0 0 6

0 6 0 0 0 0 2 8 0

0 0 0 4 1 9 0 0 5

 

0 0 0 0 8 0 0 7 9

But after the modifications on the board that we created it looked like this:

In order to display the numbers like that and also display the data, we used a vector inside another to store the user’s choice. We also created functions to check if the number entered by the user was already in the same row or column and therefore, tell the user that the number entered couldn´t be registered. 

The same concept was used for numbers bigger than nine or smaller than 1. Whenever the user provided a number 9 then, the program displayed a mesage asking the user to provide a number within the parameters from the game. 

Of course in order for the user to understand the whole concept we displayed some instructions.

At the end of the code, are a bunch of conditionals which store the user’s choice (print, erase, write, quit, restart) in order to call our functions and display a message. 

Github link: https://github.com/carlosgreen/Sudoku_Caro_Carlos/tree/master

#Project #TC1017

1017

FINAL WEEK: We are done with the project we will upload the code and the link as well to the project !! FINALLY FINALS !! hahaha

#Project #TC1017

 

Still working on the project, almost done. Just fixing some bugs such as if the user write a letter instead of a number of if the input it´s bigger than the number of rows. Colors are already coded, the board as well. 

#Project #TC1017

Week 2:

Still wroking on conditionals and putting some decorations, such as colocr, lines, brachets and cool stuff. A bit hard knowing how to code the conditionals.

#Project #TC1017

In this first week we started the project. Mitzi and i thought and realized that it´s harder than we thought !! We are working in that figuring out how to do it. 

Project

My team project is Jose Eduardo Sanchez Rosas