Skip to content

Commit

Permalink
Merge pull request #95 from fleizean/revert-94-mpa
Browse files Browse the repository at this point in the history
Revert "Mpa"
  • Loading branch information
temasictfic committed Feb 14, 2024
2 parents cec2709 + b05b8e4 commit 565fdfb
Show file tree
Hide file tree
Showing 191 changed files with 11,712 additions and 8,287 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Docker Build and Push

on:
push:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build and push Docker images
run: |
docker-compose -f docker-compose.yml build
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker-compose -f docker-compose.yml push
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ media
# Node modules
node_modules/

.vscode/

# C extensions
*.so

Expand Down
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
DOCKER = docker
DOCKER_COMPOSE = docker-compose
SUDO_DOCKER_COMPOSE = sudo docker-compose

all: up

sudo_up:
$(SUDO_DOCKER_COMPOSE) up -d --build

up:
$(DOCKER_COMPOSE) up -d --build

down:
$(DOCKER_COMPOSE) down

image:
$(DOCKER_COMPOSE) images

stop:
$(DOCKER_COMPOSE) stop

fclean:
$(DOCKER_COMPOSE) down --rmi all

prune: down fclean
$(DOCKER) system prune -a -f

re: fclean all

.PHONY: all up down image stop fclean re sudo_up
26 changes: 13 additions & 13 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
</details>

<details>
<summary> <b> Introduce an AI Opponent. </b></summary>
<summary> <b> Introduce an AI Opponent. </b></summary>
In this major module, the objective is to incorporate an AI player into the game. Notably, the use of the <b>A* algorithm</b> is not permitted for this task. Key features and goals include:
<ul>
<li>✅ Develop an AI opponent that provides a challenging and engaging gameplay experience for users. </li>
<li> The AI must replicate human behavior, meaning that in your AI implementation, you must simulate keyboard input. The constraint here is that the AI can only refresh its view of the game once per second, requiring it to anticipate bounces and other actions. </li>
<li> The AI must replicate human behavior, meaning that in your AI implementation, you must simulate keyboard input. The constraint here is that the AI can only refresh its view of the game once per second, requiring it to anticipate bounces and other actions. </li>
<i>The AI must utilize power-ups if you have chosen to implement the Game customization options module.</i>
<li> Implement AI logic and decision-making processes that enable the AI player to make intelligent and strategic moves. </li>
<li> Implement AI logic and decision-making processes that enable the AI player to make intelligent and strategic moves. </li>
<li>✅ Explore alternative algorithms and techniques to create an effective AI player without relying on A*. </li>
<li> Ensure that the AI adapts to different gameplay scenarios and user interactions. </li>
<li> Ensure that the AI adapts to different gameplay scenarios and user interactions. </li>
</br>
<b>This major module aims to enhance the game by introducing an AI opponent that adds excitement and competitiveness without relying on the A* algorithm.</b>
</ul>
Expand Down Expand Up @@ -108,24 +108,24 @@
</details>

<details>
<summary> <b> Game Customization Options. </b></summary>
<summary> <b> Game Customization Options. </b></summary>
In this minor module, the goal is to provide customization options for all available games on the platform. Key features and objectives include:
<ul>
<li> Offer customization features, such as power-ups, attacks, or different maps, that enhance the gameplay experience. </li>
<li> Allow users to choose a default version of the game with basic features if they prefer a simpler experience. </li>
<li> Ensure that customization options are available and applicable to all games offered on the platform. </li>
<li> Implement user-friendly settings menus or interfaces for adjusting game parameters. </li>
<li> Maintain consistency in customization features across all games to provide a unified user experience. </li>
<li> Offer customization features, such as power-ups, attacks, or different maps, that enhance the gameplay experience. </li>
<li> Allow users to choose a default version of the game with basic features if they prefer a simpler experience. </li>
<li> Ensure that customization options are available and applicable to all games offered on the platform. </li>
<li> Implement user-friendly settings menus or interfaces for adjusting game parameters. </li>
<li> Maintain consistency in customization features across all games to provide a unified user experience. </li>
</ul>
This module aims to give users the flexibility to tailor their gaming experience across all available games by providing a variety of customization options while also offering a default version for those who prefer a straightforward gameplay experience.
</details>

<details>
<summary> <b> Support on all devices. </b></summary>
<summary> <b> Support on all devices. </b></summary>
In this module, the main focus is to ensure that your website works seamlessly on all types of devices. Key features and objectives include:
<ul>
<li> Make sure the website is responsive, adapting to different screen sizes and orientations, ensuring a consistent user experience on desktops, laptops, tablets, and smartphones. </li>
<li> Ensure that users can easily navigate and interact with the website using different input methods, such as touchscreens, keyboards, and mice, depending on the device they are using. </li>
<li> Make sure the website is responsive, adapting to different screen sizes and orientations, ensuring a consistent user experience on desktops, laptops, tablets, and smartphones. </li>
<li> Ensure that users can easily navigate and interact with the website using different input methods, such as touchscreens, keyboards, and mice, depending on the device they are using. </li>
</ul>
This module aims to provide a consistent and user-friendly experience on all devices, maximizing accessibility and user satisfaction.
</details>
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3.9"

services:

indianpong:
image: aktas/indianpong:latest
build:
context: ./indianpong
container_name: indianpong
restart: always
ports:
- 8000:8000
Binary file added frontend/assets/achievements/award.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file added frontend/assets/backgrounds/home-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/backgrounds/leader-bg.avif
Binary file not shown.
File renamed without changes
File renamed without changes
Binary file added frontend/assets/backgrounds/rankings-bg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
File renamed without changes
Binary file added frontend/assets/profile/c1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/profile/c2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/profile/c3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/profile/c4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/profile/profilephoto.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added frontend/assets/ranks/challenger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/scrool/crossedsword.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/assets/scrool/pixelsword.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions frontend/baseindex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Indian-Pong</title>
<link rel="stylesheet" href="css/basestyle.css">
<link rel="stylesheet" href="css/chat.css">
<link rel="stylesheet" href="css/profilesettings.css">
<link rel="stylesheet" href="css/in-game.css">
<link rel="stylesheet" href="css/match-history.css">
<link rel="stylesheet" href="css/friends-list.css">
<link rel="stylesheet" href="css/game-find.css">
<link rel="stylesheet" href="css/rankings.css">
<link rel="stylesheet" href="css/profile.css">
<link rel="stylesheet" href="css/register.css">

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css">

</head>

<body>

<div class="backgroundimage">
<div class="app" id="app">

</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script type="module" src="js/router.js"></script>
<script src="js/basescript.js"></script>
</body>

</html>
Loading

0 comments on commit 565fdfb

Please sign in to comment.