IvanSarabeev / School-System

This is a School Managment System, created by using the web framework Laravel with addition Laravel Breezer package so that users can Register or Login. In addition I've implemented a CRUD functionality if the user has an Auth status as Admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

public function playMove($x, $y, $player) { if ($this->board[$x][$y] === '') { $this->board[$x][$y] = $player; return true; } return false; }

public function checkWinner() { // Check rows for ($i = 0; $i < 3; $i++) { if ($this->board[$i][0] != '' && $this->board[$i][0] == $this->board[$i][1] && $this->board[$i][1] == $this->board[$i][2]) { return $this->board[$i][0]; } } // Check columns for ($i = 0; $i < 3; $i++) { if ($this->board[0][$i] != '' && $this->board[0][$i] == $this->board[1][$i] && $this->board[1][$i] == $this->board[2][$i]) { return $this->board[0][$i]; } } // Check diagonals if ($this->board[0][0] != '' && $this->board[0][0] == $this->board[1][1] && $this->board[1][1] == $this->board[2][2]) { return $this->board[0][0]; } if ($this->board[0][2] != '' && $this->board[0][2] == $this->board[1][1] && $this->board[1][1] == $this->board[2][0]) { return $this->board[0][2]; } // No winner return ''; }

About

This is a School Managment System, created by using the web framework Laravel with addition Laravel Breezer package so that users can Register or Login. In addition I've implemented a CRUD functionality if the user has an Auth status as Admin


Languages

Language:PHP 59.2%Language:Blade 40.2%Language:JavaScript 0.6%Language:CSS 0.0%