mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-24 06:19:35 +00:00
[PR #771] [MERGED] fix: several bugs on games/tic_tac_toe.c #1283
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/771
Author: @kana800
Created: 11/4/2020
Status: ✅ Merged
Merged: 2/10/2021
Merged by: @kvedala
Base:
master← Head:fix_bug📝 Commits (10+)
2d27be8fixed several bugs on tic_tac_toe5ba242ffinal changes bug fixedd78506eadded requested changes8299b01fixed changes67c8883fixed stuff3ec1d85fix clang-tidy warnings535c531removed unnecessary headersde070f6resolved some warningse024589fixed warning c424431220afTiggering CI checks📊 Changes
1 file changed (+38 additions, -27 deletions)
View changed files
📝
games/tic_tac_toe.c(+38 -27)📄 Description
Description of Change
Issue: #729
As mentioned in the issue , The piece code listed below throws the program into an loop (from
line 247) if an invalid character is entered.Fixes / Changes
Added an array [dynamic] at
line36:line 47:Assignment of the stored_pos array:
line 331,line 308&line 278example:
Freed the stored_pos memory
line 75Added a new function called
check_placesatline237toline256The
while-loopin the above above function will ask for an input until it gets a correct output.string.hlib is need)References
Checklist
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.