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
- Host: GitHub
- URL: https://github.com/ivansarabeev/school-system
- Owner: IvanSarabeev
- Created: 2023-12-16T07:30:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T18:20:06.000Z (over 2 years ago)
- Last Synced: 2025-01-10T12:18:05.518Z (over 1 year ago)
- Topics: blade, bootstrap, breeze-dark, laravel-breeze, laravel-framework, php8
- Language: PHP
- Homepage:
- Size: 131 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 '';
}