Tag Archives: #FinalProject

Proyecto Final

SUDOKU

Aqui esta el codigo principal en github de lo que conllevo hacer todo esto: https://github.com/kenwbauer/EduardoJuan

Pero tambien hay un video para que puedan ver como funciona el juego

Link: https://youtu.be/5y2GwsoUDM8

ASI QUE DISFRUTENLO

1017

#TC1017 #FinalProject

Finalmente terminamos nuestro sudoku,fue dificil hacerlo nos costó mucho trabajo, en la parte que yo me trabe era para que imprimiera el numero otra vez en el tablero una vez que lo ingresaba, a veces nos compilaba bien y otras veces no,fue bueno trabajar con mi compañero fue dificil pero lo logramos. Aqui pueden ver nuestro codigo. Otra dificultad que tuve fue encontrar los codigos de los colores y saber ponerlos.

https://github.com/kenwbauer/OsvaldoFernando/blob/master/Final%20Code

 1017

Final Project #5

Here is a link to our code for the final sodoku project of Kens TC1017 C++ course:

Final Code

1017

Sudoku Final Project

The semester is ending and our programming 1017 C++ course will come to an end; but not before we turn in our final project, which kept us busy for the last couple weeks. Something pretty curious happened to me during this course. I thought challenges were huge until i started getting into them and breaking them into little pieces which didn´t took me long to figure out. After what might have been a couple intense days of thinking and planning, my teammate and I got our sudoku working.

I´ll try to explain, in general terms, how our program works.

Vectors may exist in two dimensions. In this case, our sudoku board is simply a two dimensional vector that is modified by the main function in two sections: WRITE & ERASE. But before writing and erasing we had to check 4 things. 

1: You may not modify or erase and original number.

First, we solved this creating a paralel clone vector that was not going to be modified during the game; so everytime the user wanted to erase or to write a new value inside the vector, the program was going to check whether that given position contained or not an original number that belonged to the level. If no original number was found, then the program could continue and write a new value, otherwise, a warning message would print. After talking to ken about a bug, he saw our huge conditonal code creating a huge, 81-slot, vector everytime the Write section was called. He said that our program would run slow and that there was an easier way and more efficient solution to our problem. Negative numbers. The program basically writes every original extracted input as a negative value, but prints the absolute value. So it checks if the value is or not negative. If is, then it is an original number, if not, then… No.

 

2, 3 & 4: May not repeat a number inside the same cuadrant, on the same row or on the same column:

Columns and Rows were easy to solve. Write a couple nested for loops that walk the conditional (looking for input) through each row or column given and return a boolean if found… The challenge was cuadrants. Since cuadrants were never defined in our vector, we had to create a function that returns the numbered cuadrant the input was located in  (1-9), and with this location, a second group of nested for loops would look for a coincidence with the input given. All these where written inside a boolean function that returned TRUE if repeated. 

All this development was written after we had checked the input was a number between 1 and 9 and that we read the initial menu input from the user (W for write, E for erase, Q for quit… etc) the last step was writing a function that told the user he had won and aesthetic details.

 

I´ll include some pictures and the link for the code in gitHub.

Rodrigo and JuanCarlos´s Sudoku Final Project

 

Main Menu

How the main menu looks like.

 

 

instructions and history of sudoku

You can read how to play sudoku and some history of how sudoku was created.

 

writing

Here´s the writing interface. The program asks for Row and Column. Notice the new “2”.

 

winner

When you complete a level, the program lets you know right away!

 

 

 

Feel free to download the code and play it in your computer. 

 

1017

 

cheers.

Final Project Post #4

Here is my 2nd to last post regarding the Final Sodoku Project in Kens TC1017 C++ course.

The code is very similair to the code for week except for a few small changes. The code is completed and only needs to have a few things rewritten so it is able to be comprehended easier. Just one more week everyone. I’ve had a great time. See you all on the flip side.

1017

Untitled

Reporte

Hola a todos, al parecer tenemos listo nuestro sudoku, pulimos detalles que teníamos pendientes (están en mi reporte anterior) y todo parece indicar que nuestro programa corre sin problemas. Puedes ver nuestro código en: https://github.com/kenwbauer/SamirJoseLuis/blob/master/sudoku.cpp

José Luis Enríquez Flores

A01630238

Jorge Samir Godinez Lara

A01630155

Reporte Sudoku

Esta semana le pusimos lineas horizontales y verticales para separar los numeros por cuadrantes, y hemos tratado de poner colores a los numero pero aun no logramos ponerlos, solo a las lineas de los cuadrantes. Lo siguiente que haremos sera checar las columnas y hileras, asi como el usuario pueda escribir los numeros que desea ingresar. 

Final Project Post #3

Here is my 3rd post regarding the final project in Kens TC1017 C++ programming course.

We only have a few things to add in the prgram now. We have implemented color and made sure the user can only input valid (legal) numbers. Although the code works well and there are no bugs, it is pretty long. We might be able to shorten it using some math functions but for now we have left it long.

We only have 2 more weeks

Push through everyone

PROJECT

 #SUDOKU

Hey everybody! 

We have been working on the SUDOKU, currectly we have the basic code and now it just have some details to fix. One of the most difficult parts in my opinin was to print the text in color because we tried many different ways but it didn’t work until yesterday!!!

I’ll continue submmiting our progress.

 

If you have the same problem in cygwin try this:

 

<iostream>

using namespace std;

 

RED “x1b[31m”

GREEN “x1b[32m”

YELLOW “x1b[33m”

BLUE “x1b[34m”

PURPLE “x1b[35m”

SKY “x1b[36m”

WHITE “x1b[37m”

RED_BK      “x1b[41m”

 

int main()

{

cout<<RED_BK<<endl;

cout<<RED<<“Hello, World”<<RED<<endl;

cout<<GREEN<<“Hello, World”<<GREEN<<endl;

cout<<YELLOW<<“Hello, World”<<YELLOW<<endl;

cout<<BLUE<<“Hello, World”<<BLUE<<endl;

cout<<PURPLE<<“Hello, World”<<PURPLE<<endl;

cout<<SKY<<“Hello, World”<<SKY<<endl;

cout<<WHITE<<“Hello, World”<<WHITE<<endl;

return 0;

}

Reporte Sudoku

Esta semana estuvimos trabajando en el sudoku, se realizaron varios cambios, se agregaron librerias de color y se pusieron a funcionar la mayoria de las opciones e incluso fuimos a vistar a Ken para resolver algunas dudas porque estabamos un poco perdidos.

Falta hacer que los valores del archivo de texto queden estaticos y afinar pequeños detalles.

Los modificaciones del codigo las pueden consultar en: https://github.com/kenwbauer/SamirJoseLuis/blob/master/sudoku.cpp

José Luis Enríquez Flores

A01630238

Jorge Samir Godinez Lara

A01630155