An open API service indexing awesome lists of open source software.

https://github.com/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
https://github.com/ivansarabeev/school-system

blade bootstrap breeze-dark laravel-breeze laravel-framework php8

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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 '';
}