mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-20 12:29:34 +00:00
[PR #771] fix: several bugs on games/tic_tac_toe.c #1286
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?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/771
State: closed
Merged: Yes
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: