Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Optimization needed in Tic Tac Toe #2

Open
crypticani opened this issue Aug 15, 2020 · 0 comments
Open

Code Optimization needed in Tic Tac Toe #2

crypticani opened this issue Aug 15, 2020 · 0 comments

Comments

@crypticani
Copy link
Member

The Program of Tic Tac Toe in this repo needs optimization to reduce it's space complexity, which is currently very high due heavy use of if-else loops. You are invited to brush up your basic C programming skills. It will also give you a revision of concepts since most of you are not coding regularly amidst the COVID19 pandemic.

suggestion:

  • Decrease the number of if-else loops, maintaining the original logic. However, if you have a better idea, you can add yours.
  • Use of double for loops
  • Use of matrix

You can add your own logic or suggestions too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants