Skip to content

Commit

Permalink
Update: Added game files for iOS and Android and Web
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Mar 20, 2024
1 parent 54914ec commit f6b33f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ The Swift version of the 2048 game is designed for iOS devices. It provides a sm

## User Interface

<div style="display: flex; justify-content: center;">
<p align="center">
<img src="../images/IOS-UI.png" alt="Game UI" style="width: 250px; height: 550px;">
</div>
</p>

### Project Structure

Expand Down Expand Up @@ -54,9 +54,9 @@ The web application version of the 2048 game is built by simply using HTML, CSS,

### User Interface

<div style="display: flex; justify-content: center;">
<p align="center">
<img src="../images/web-version-UI.png" alt="Game UI" style="width: 310px; height: 450px;">
</div>
</p>

### Project Structure

Expand All @@ -80,9 +80,9 @@ The Android version of the 2048 game is designed for Android devices. It provide

### User Interface

<div style="display: flex; justify-content: center;">
<p align="center">
<img src="../images/android-ui.png" alt="Game UI" style="width: 230px; height: 390px;">
</div>
</p>

### Project Structure

Expand Down
4 changes: 2 additions & 2 deletions Web-Version/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ document.addEventListener('DOMContentLoaded', () => {
}
else {
if (yDiff > 0) {
moveDown();
moveUp();
}
else {
moveUp();
moveDown();
}
}
generateRandom();
Expand Down

0 comments on commit f6b33f4

Please sign in to comment.