chore: fix tic_tac_toe.c CodeQL warning (#1133)

e<=8 is not needed as remainder is always less than remainder so e<9(e>=8) is obvious in every case
This commit is contained in:
ms3939 2022-11-15 00:40:23 +05:30 committed by GitHub
parent 55b2045b19
commit 741d3f95b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,7 @@ void place()
int e = rand() % 9;
if (e >= 0 && e <= 8)
if (e >= 0)
{
if (game_table[e] != 'x' && game_table[e] != 'o')
{