Skip to content

This is a simple console-based game that runs on the command prompt. The game is played by two players who take turns to mark X or O on a grid (grid size can change to players). The player who gets same marks in a row, column, or diagonal wins the game. This game was created as a learning project for a programming assignment.

License

Notifications You must be signed in to change notification settings

DilZhaan/MyFirstCGame-TikTakToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game Readme

Overview

This project involves learning key concepts in C programming, specifically dynamic memory allocation and file handling. While dynamic memory allocation may initially seem complex in C, I found valuable resources on YouTube that aided my understanding.

Learning Process

Dynamic Memory Allocation

To grasp dynamic memory allocation, I dedicated time to watching YouTube tutorials. The visual aids provided in these videos significantly enhanced my comprehension of this intricate concept.

CheckWinner Function Challenges

The CheckWinner function posed a notable challenge due to the dynamic size of the tic-tac-toe board. To overcome this, I created a solution within two hours. To tackle the complexities, I sketched a tic-tac-toe board on paper, enabling me to discern patterns in indexing for diagonals, rows, and columns.

Achievements

Throughout this project, I acquired knowledge and skills in the following areas:

  • Dynamic Memory Allocation
  • File Handling
  • Working with 2D Arrays
  • Error Handling
  • Header File Management

Conclusion

This project not only expanded my understanding of C programming but also allowed me to apply my knowledge to solve real-world challenges. Feel free to explore the code and documentation for a deeper insight into the implementation.

About

This is a simple console-based game that runs on the command prompt. The game is played by two players who take turns to mark X or O on a grid (grid size can change to players). The player who gets same marks in a row, column, or diagonal wins the game. This game was created as a learning project for a programming assignment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages