Skip to content

Commit d2b9c83

Browse files
committed
Added Assembly: Endgame
1 parent fc48aaa commit d2b9c83

17 files changed

Lines changed: 3915 additions & 1 deletion
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy Assembly Endgame App to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'assembly-endgame/**'
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
23+
- name: Install dependencies for Assembly Endgame
24+
run: |
25+
cd assembly-endgame
26+
npm install
27+
env:
28+
CI: true
29+
30+
- name: Build Assembly Endgame app
31+
run: |
32+
cd assembly-endgame
33+
npm run build
34+
35+
36+
- name: Deploy to GitHub Pages
37+
uses: peaceiris/actions-gh-pages@v4
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: ./assembly-endgame/dist
41+
destination_dir: assembly-endgame
42+
43+
44+

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@ A simple and fun dice game built with React. The goal is to roll until all ten d
77

88
[**Live Demo**](https://maelkmark.github.io/learning-react/tenzies/)
99
|
10-
[**Source Code**](https://github.com/MaelkMark/learning-react/tree/main/tenzies)
10+
[**Source Code**](https://github.com/MaelkMark/learning-react/tree/main/tenzies)
11+
12+
## Assembly: Endgame
13+
14+
A hangman-style game where a programming language is deleted with every wrong guess, until only Assembly remains.
15+
16+
[**Live Demo**](https://maelkmark.github.io/learning-react/assembly-endgame/)
17+
|
18+
[**Source Code**](https://github.com/MaelkMark/learning-react/tree/main/assembly-endgame/)

assembly-endgame/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

assembly-endgame/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Assembly: Endgame
2+
This is a simple hangman-style game where a programming language is deleted with every wrong guess, until only Assembly remains. Guess the word in 8 attempts to keep the programmming world safe from Assembly!
3+
4+
[**View Live Demo**](https://maelkmark.github.io/learning-react/assembly-endgame/)
5+
6+
## About The Project
7+
8+
I made this game following the [React course](https://scrimba.com/learn-react-c0e]) on [Scrimba](https://scrimba.com/home). I remade it from scratch to make sure I understand everything. I also added a bonus features: you can type with your keyboard too, not only with the on-screen keyboard.
9+
10+
You can compare my solution with the [final result in the course](https://scrimba.com/learn-react-c0e/~02el/).
11+
12+
## See Also
13+
14+
You can find my other React projects in my [learning-react](https://github.com/MaelkMark/learning-react/tree/main) repo.

assembly-endgame/eslint.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import { defineConfig, globalIgnores } from 'eslint/config'
6+
7+
export default defineConfig([
8+
globalIgnores(['dist']),
9+
{
10+
files: ['**/*.{js,jsx}'],
11+
extends: [
12+
js.configs.recommended,
13+
reactHooks.configs['recommended-latest'],
14+
reactRefresh.configs.vite,
15+
],
16+
languageOptions: {
17+
ecmaVersion: 2020,
18+
globals: globals.browser,
19+
parserOptions: {
20+
ecmaVersion: 'latest',
21+
ecmaFeatures: { jsx: true },
22+
sourceType: 'module',
23+
},
24+
},
25+
rules: {
26+
'no-unused-vars': ['off'],
27+
'react-hooks/exhaustive-deps': ['off'],
28+
},
29+
},
30+
])

assembly-endgame/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Assembly: Endgame</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)