Skip to content

Commit

Permalink
Update ev3.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastautz authored Oct 31, 2022
1 parent 59767fa commit 65c03e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tic-tac-toe/ev3.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function drawPos($pos, $fields) {
else if ($pos == 6) { $x = 0; $y = 2; }
else if ($pos == 7) { $x = 1; $y = 2; }
else if ($pos == 8) { $x = 2; $y = 2; }
$x = 39 + $x * 35 + 17.5;
$y = 12 + $y * 35 + 17.5;
$x = 56.5 + $x * 35;
$y = 29.5 + $y * 35;
drawFields($fields);
if ($fields[$pos] == 1) ev3_lcd_circle_filled($x, $y, 3, false);
else ev3_lcd_circle_filled($x, $y, 3);
Expand Down

0 comments on commit 65c03e2

Please sign in to comment.