Skip to content

nafis-ishrak/engg1340-course-project

Repository files navigation

engg1340-course-project

Team members-

	1. Ishrak, Syed Nafis
	 UID- 3035946083 
     	2. Farhan, Md Ahnaf
	 UID- 3035856874

Description of the game-

This is a puzzle game where user will be asked to play between numbers and periodic table. 
If user chooses to play with numbers, 16 random numbers will be showed in a board and the user will have to arrange the board in ascending order. User will be asked to replace numbers for arranging the board. When the board is arranged, the user will win the game.
If user chooses to play with the periodic table, a shuffled board from group 1 will be shown. The user will have to arrange the group elements accordingly and after he is done, all the elements of that group will be shown with proper information e.g group, period, symbol and atomic number. After arranging group 1, group 2 will be shown and the same procedure will have to be maintained. Accordingly, the user will have to arrange all the groups from 1 to 8 and will be rewarded only after he is done arranging all the groups.

To compile and run the code-

make game
./game

Coding requirements-

1. Generation of Random Game Sets or Events - Each time, user will be asked to replace one number/element with other number/element. If he chooses invalid numbers/elements, the program will ask the user again for another input. This will continue until the game is finished.

2. Data Structures for Storing Game Status - We used arrays and structs to store the user inputs and also to compare user inputs with the arranged array of elements and numbers. 

3. Dynamic Memory Management - We used the dynamic array for storing the numbers that was input by the user.

4. File input/output - We are taking user inputs to store the inputs in an array. After each turn, the stored values will be printed as outputs.

5. Program Codes in Multiple Files - We used 3 cpp files. One for the numbers, one for periodic table and one for the main function. We then compiled all the 3 files together.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published