226 int skip, prevPoints, fall, move, complete, variableTLimit;
232 clock_t start, timeDiff;
260 printBoard(board_1, board_2, points_1, points_2, mode);
268 makeMove(board_1, tetro, storeMove);
274 makeMove(board_1, tetro, storeMove);
278 move =
validMove(board_1, storeMove, -1);
280 makeMove(board_1, tetro, storeMove);
286 makeMove(board_1, tetro, storeMove);
297 timeDiff = (clock()-start)*1000/CLOCKS_PER_SEC;
299 while(timeDiff<variableTLimit && skip==0);
301 printBoard(board_1, board_2, points_1, points_2, mode);
303 prevPoints = points_1;
305 if (points_1 != prevPoints){
306 printBoard(board_1, board_2, points_1, points_2, mode);
307 variableTLimit -=
MULTIPLIER * (points_1 - prevPoints);
318 printCentered(L
"🕹 Press ENTER to continue with second player...");
337 printBoard(board_1, board_2, points_1, points_2, mode);
345 makeMove(board_2, tetro, storeMove);
351 makeMove(board_2, tetro, storeMove);
355 move =
validMove(board_2, storeMove, -1);
357 makeMove(board_2, tetro, storeMove);
363 makeMove(board_2, tetro, storeMove);
374 timeDiff = (clock()-start)*1000/CLOCKS_PER_SEC;
376 while(timeDiff<variableTLimit && skip==0);
378 printBoard(board_1, board_2, points_1, points_2, mode);
380 prevPoints = points_2;
382 if (points_2 != prevPoints){
383 printBoard(board_1, board_2, points_1, points_2, mode);
384 variableTLimit -=
MULTIPLIER * (points_2 - prevPoints);