https://github.com/milo-brt/2048
Le jeu 2048 mais en PHP
https://github.com/milo-brt/2048
2048 game lyon1 online php
Last synced: 3 months ago
JSON representation
Le jeu 2048 mais en PHP
- Host: GitHub
- URL: https://github.com/milo-brt/2048
- Owner: milo-brt
- Created: 2024-02-26T18:25:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-26T22:03:41.000Z (4 months ago)
- Last Synced: 2025-02-26T23:18:50.756Z (4 months ago)
- Topics: 2048, game, lyon1, online, php
- Language: PHP
- Homepage: https://projects.milobrt.fr/2048
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The 2048 game in PHP [university project]
🇫🇷 Pour la version française, [c'est par ici](README_fr.md)
Practical work n°2 of the [LIFRW : Introduction to Networks and Web](http://perso.univ-lyon1.fr/olivier.gluck/supports_enseig.html#LIFRW) course unit done during my first year of preparatory class at [Polytech Lyon](https://polytech.univ-lyon1.fr/english-version)
## Goal
Make the 2048 game in PHP following a precise and detailed organization as described in the practical work:
- the homepage is an `.html` file that redirects to the PHP game when the "New Game" button is clicked
- the current game score, grid content, and player action history are stored in `.txt` files on the server side
- the game can be played with buttons on the page
- the game displays a message when the player looses
- many instructions are given on how to code the game, especially on managing the grid and moving the tiles
- the rules must appear on the page## Personal Additions
- Complete CSS overhaul to make the game more modern and visually appealing
- Keyboard support for playing (arrow keys)## Drawbacks
- It is not possible to play with multiple players at the same time, as the save is unique and stored on the server side
- With each player action, the server is solicited to update the grid, which is not optimal in terms of performance, especially for an online game## Result
A copy of the project is hosted [here](https://projects.milobrt.fr/2048)