Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
kunjgit authored Jul 5, 2023
2 parents e67b5fc + 0bd1efc commit 867ef66
Show file tree
Hide file tree
Showing 673 changed files with 36,588 additions and 14,430 deletions.
130 changes: 65 additions & 65 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
# name: Assign on Comment
# on:
# issue_comment:
# types:
# - created
name: Assign on Comment
on:
issue_comment:
types:
- created

# jobs:
# assign:
# runs-on: ubuntu-latest
jobs:
assign:
runs-on: ubuntu-latest

# steps:
# - name: Check if /assign command is present
# id: check_command
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# script: |
# const commentBody = context.payload.comment.body;
# const assignCommand = '/assign';
# const isCommandPresent = commentBody.includes(assignCommand);
# console.log(`Command present: ${isCommandPresent}`);
# console.log(`Comment: ${commentBody}`);
# console.log(`Issue Number: ${context.payload.issue.number}`);
# console.log(`Issue State: ${context.payload.issue.state}`);
# console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`);
# console.log(`Issue URL: ${context.payload.issue.html_url}`);
# console.log(`Comment URL: ${context.payload.comment.html_url}`);
# console.log(`Comment Author: ${context.payload.comment.user.login}`);
# console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`);
# console.log(`Repository URL: ${context.payload.repository.html_url}`);
# console.log(`Repository Full Name: ${context.payload.repository.full_name}`);
# console.log(`Repository Name: ${context.payload.repository.name}`);
# console.log(`Repository Owner: ${context.payload.repository.owner.login}`);
# console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`);
# console.log(`Event Name: ${context.eventName}`);
steps:
- name: Check if /assign command is present
id: check_command
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script: |
const commentBody = context.payload.comment.body;
const assignCommand = '/assign';
const isCommandPresent = commentBody.includes(assignCommand);
console.log(`Command present: ${isCommandPresent}`);
console.log(`Comment: ${commentBody}`);
console.log(`Issue Number: ${context.payload.issue.number}`);
console.log(`Issue State: ${context.payload.issue.state}`);
console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`);
console.log(`Issue URL: ${context.payload.issue.html_url}`);
console.log(`Comment URL: ${context.payload.comment.html_url}`);
console.log(`Comment Author: ${context.payload.comment.user.login}`);
console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`);
console.log(`Repository URL: ${context.payload.repository.html_url}`);
console.log(`Repository Full Name: ${context.payload.repository.full_name}`);
console.log(`Repository Name: ${context.payload.repository.name}`);
console.log(`Repository Owner: ${context.payload.repository.owner.login}`);
console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`);
console.log(`Event Name: ${context.eventName}`);
# const commentAuthor = context.payload.comment.user.login;
# core.setOutput('comment_author', commentAuthor);
const commentAuthor = context.payload.comment.user.login;
core.setOutput('comment_author', commentAuthor);
# const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login;
# core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString());
const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login;
core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString());
# const isAlreadyAssigned = context.payload.issue.assignees.length > 0;
# core.setOutput('is_already_assigned', isAlreadyAssigned.toString());
const isAlreadyAssigned = context.payload.issue.assignees.length > 0;
core.setOutput('is_already_assigned', isAlreadyAssigned.toString());
# if (isCommandPresent && isGreetingFromOwner) {
# console.log('Skipping assigning issue: Greeting from repository owner.');
# console.log(`::set-output name=assign_issue::false`);
# } else if (isCommandPresent && isAlreadyAssigned) {
# const { owner, repo, number } = context.issue;
# const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', ');
# const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. 💗 \n You can work on other issues 🚀 \n If there is anything wrong you can contact us on [Discord🕹️](https://discord.gg/fgwk4XZfxG)👀`;
# await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
# console.log(`Commented on the issue: ${commentBody}.`);
# console.log(`::set-output name=assign_issue::false`);
# } else if (isCommandPresent) {
# console.log(`::set-output name=assign_issue::true`);
# } else {
# console.log(`::set-output name=assign_issue::false`);
# }
if (isCommandPresent && isGreetingFromOwner) {
console.log('Skipping assigning issue: Greeting from repository owner.');
console.log(`::set-output name=assign_issue::false`);
} else if (isCommandPresent && isAlreadyAssigned) {
const { owner, repo, number } = context.issue;
const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', ');
const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. 💗 \n You can work on other issues 🚀 \n If there is anything wrong you can contact us on [Discord🕹️](https://discord.gg/fgwk4XZfxG)👀`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the issue: ${commentBody}.`);
console.log(`::set-output name=assign_issue::false`);
} else if (isCommandPresent) {
console.log(`::set-output name=assign_issue::true`);
} else {
console.log(`::set-output name=assign_issue::false`);
}
# - name: Assign the issue
# if: steps.check_command.outputs.assign_issue == 'true'
# id: assign_issue
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# script: |
# const { owner, repo, number } = context.issue;
# const assignee = context.payload.comment.user.login;
# await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] });
# console.log(`Assigned the issue to ${assignee}.`);
- name: Assign the issue
if: steps.check_command.outputs.assign_issue == 'true'
id: assign_issue
uses: actions/github-script@v4
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script: |
const { owner, repo, number } = context.issue;
const assignee = context.payload.comment.user.login;
await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] });
console.log(`Assigned the issue to ${assignee}.`);
4 changes: 4 additions & 0 deletions Games/1024_Moves/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<head>
<title>CUBE</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<script src="./lost.js"></script>
<style type="text/css">
body {
Expand Down Expand Up @@ -2194,5 +2195,8 @@
};
};
</script>
<div style="text-align:right;
font-size: 30px;
padding: 5px; background-color: rgb(127, 12, 235);"><a href="/index.html"><i style="color:white;" class="fas fa-home home-icon"></i></a></div>
</body>
</html>
7 changes: 6 additions & 1 deletion Games/2048/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport"
content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>

<body>
<div style="text-align: left; margin-left: 40px;
margin-top: 15px;
font-size: 30px;
padding: 5px; "><a href="/index.html"><i style="color:black;" class="fas fa-home home-icon"></i></a></div>
<div class="container">
<div class="heading">
<h1 class="title">2048</h1>
Expand Down
4 changes: 4 additions & 0 deletions Games/3d_Box Game/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>3d Box Game</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<div style="text-align:left;margin-left:50px;margin-top:20px;
font-size: 30px;
padding: 5px; "><a href="/index.html"><i style="color:black;" class="fas fa-home home-icon"></i></a></div>
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital@1&display=swap");
</style>
Expand Down
2 changes: 2 additions & 0 deletions Games/3d_Box Game/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ body {
#6284ff 50%,
#ff0000 100%
);
overflow:hidden;
background-repeat: no-repeat;
}

h1 {
Expand Down
6 changes: 4 additions & 2 deletions Games/AI-CHESS-Game/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>AI Chess Game</title>
<link rel="stylesheet" href="style.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<body>

<div style="text-align:center;
margin-top: 10px;
font-size: 30px; "><a href="/index.html"><i style="color:black;" class="fas fa-home home-icon"></i></a></div>
<section id="view">
<aside>
<div>
Expand Down
5 changes: 5 additions & 0 deletions Games/Achluophobia/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
div#info, div#help { margin: 10px auto; color: #FFFFFF; text-align: center; }
a#help-link { color: #FFFFFF; text-align: center; display:block; }
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<div style="text-align: left; margin-left: 40px;
margin-top: 15px;
font-size: 30px;
padding: 5px; "><a href="/index.html"><i style="color:white;" class="fas fa-home home-icon"></i></a></div>
<canvas id="game" width="480" height="480" >
</canvas>
<div id="info">
Expand Down
5 changes: 4 additions & 1 deletion Games/Adventure_Game/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
<meta charset="UTF-8">
<title>CodePen - The Mine: No JS, CSS only adventure game</title>
<link rel="stylesheet" href="./style.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<div style="text-align: left; margin-left: 40px;
margin-top: 10px;
font-size: 30px; "><a href="/index.html"><i style="color:white;" class="fas fa-home home-icon"></i></a></div>
<!-- partial:index.partial.html -->
<div class='game'>
<div class='game_loader'>
Expand Down
4 changes: 4 additions & 0 deletions Games/Aim_Training/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
<head>
<title>Aim training</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<div style="text-align: center;
margin-top: 10px;
font-size: 30px; "><a href="/index.html"><i style="color:black;" class="fas fa-home home-icon"></i></a></div>
<h1>Aim training</h1>
<div id="gameContainer">
<div id="score">Score: <span id="scoreValue">0</span></div>
Expand Down
3 changes: 3 additions & 0 deletions Games/AirBalloon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<div style="text-align: left;background-color: rgb(156, 222, 241);
font-size: 30px; "><a href="/index.html"><i style="color:black;" class="fas fa-home home-icon"></i></a></div>
<div class="container">
<canvas id="game"></canvas>
<div id="introduction">
Expand Down
1 change: 1 addition & 0 deletions Games/AirBalloon/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
cursor: pointer;
overflow: hidden;
}

.container {
Expand Down
5 changes: 5 additions & 0 deletions Games/Alien_Shooters/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Play&family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<script src="./script.js"></script>
</head>

<body>

<div>
<h1>Alien Shooter</h1>
<canvas id="board"></canvas>
</div>
<ul>
<div style="text-align: center;
margin-top: 10px;
font-size: 30px; text-decoration: none;"><a href="/index.html"><i style="color:white;" class="fas fa-home home-icon"></i></a></div>
<li style="text-align: center; list-style: none; margin-bottom: 2rem;">How to Play: </li>
<li>Press Space on keyboard to fire</li>
<li>Use arrow keys to move horizontally</li>
Expand Down
1 change: 1 addition & 0 deletions Games/Alien_Shooters/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {
text-align: center;
font-family: 'Press Start 2P', cursive;
height: 97vh;
overflow: hidden;
}

h1{
Expand Down
9 changes: 9 additions & 0 deletions Games/Alphabet Learning Game/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Child Learning Game

### Type Any English Alphabet and Hear the Word for that

### __ScreenShots:__
![Child Game](https://github.com/Samriddhi15/GameZone/assets/106501626/08628882-3a78-454e-8f38-3d8d5a8162a3)

### __Video:__
![169116099-401b10ea-b7bf-4d3c-aaa0-8993f4358e27](https://github.com/Samriddhi15/GameZone/assets/106501626/3400df6e-e5b7-4a91-9c5b-974361a3bd18)
46 changes: 46 additions & 0 deletions Games/Alphabet Learning Game/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Child Learning Game</title>
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
</head>
<body>
<!-- partial:index.partial.html -->
<audio preload="auto">
<source id="oggSource" src="sounds/ogg/like-glass.ogg" type="audio/ogg">
<source id="mp3Source" src="sounds/mp3/like-glass.mp3" type="audio/mp3">
Oops! Looks like you're using an old browser, try using a modern browser like Google Chrome, Firefox or even Safari.
</audio>

<div class="main-cont">
<div style="text-align: left; margin-left: 20px;
margin-top: 10px;
font-size: 30px; "><a href="/index.html"><i style="color:white;" class="fas fa-home home-icon"></i></a></div>
<div id="about-cont">
<div class="content-wrapper">
<div class="about-white-bg">
<h2 class="about-title">A simple game to teach kids the English alphabets</h2>
<div class="about-image"></div>
<p class="about-text text-sounds-source">
Alphabet sounds from <a href="http://www.theblog.ca/mp3-audio-files-alphabet" target="_blank">Peter's Useful Crap</a>
</p>
<button id="hide-button" type="button" name="button">Hide</button>
</div>
</div>
</div>
<div class="char-cont">
<p id="big-char" class="char animationHabibi">
Type any letter
</p>
</div>
<footer>
<button id="mute-button" class="habibi-button" type="button" name="button">Mute Sounds</button>
<button id="about-button" class="habibi-button" type="button" name="button">About</button>
</footer>
</div>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>
Loading

0 comments on commit 867ef66

Please sign in to comment.