Skip to content

Commit 9d7360b

Browse files
Merge pull request #645 from auryn31/feature/04_Awari
Add implementation of Awari to Alternative languages
2 parents c6e68b7 + 7054f27 commit 9d7360b

File tree

7 files changed

+719
-0
lines changed

7 files changed

+719
-0
lines changed
Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,elm
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,visualstudiocode,elm
4+
5+
### Elm ###
6+
# elm-package generated files
7+
elm-stuff
8+
# elm-repl generated files
9+
repl-temp-*
10+
11+
### macOS ###
12+
# General
13+
.DS_Store
14+
.AppleDouble
15+
.LSOverride
16+
17+
# Icon must end with two \r
18+
Icon
19+
20+
21+
# Thumbnails
22+
._*
23+
24+
# Files that might appear in the root of a volume
25+
.DocumentRevisions-V100
26+
.fseventsd
27+
.Spotlight-V100
28+
.TemporaryItems
29+
.Trashes
30+
.VolumeIcon.icns
31+
.com.apple.timemachine.donotpresent
32+
33+
# Directories potentially created on remote AFP share
34+
.AppleDB
35+
.AppleDesktop
36+
Network Trash Folder
37+
Temporary Items
38+
.apdisk
39+
40+
### VisualStudioCode ###
41+
.vscode/*
42+
!.vscode/settings.json
43+
!.vscode/tasks.json
44+
!.vscode/launch.json
45+
!.vscode/extensions.json
46+
!.vscode/*.code-snippets
47+
48+
# Local History for Visual Studio Code
49+
.history/
50+
51+
# Built Visual Studio Code Extensions
52+
*.vsix
53+
54+
### VisualStudioCode Patch ###
55+
# Ignore all local history of files
56+
.history
57+
.ionide
58+
59+
# Support for Project snippet scope
60+
61+
# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,elm
62+
63+
# Created by https://www.toptal.com/developers/gitignore/api/node
64+
# Edit at https://www.toptal.com/developers/gitignore?templates=node
65+
66+
### Node ###
67+
# Logs
68+
logs
69+
*.log
70+
npm-debug.log*
71+
yarn-debug.log*
72+
yarn-error.log*
73+
lerna-debug.log*
74+
.pnpm-debug.log*
75+
76+
# Diagnostic reports (https://nodejs.org/api/report.html)
77+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
78+
79+
# Runtime data
80+
pids
81+
*.pid
82+
*.seed
83+
*.pid.lock
84+
85+
# Directory for instrumented libs generated by jscoverage/JSCover
86+
lib-cov
87+
88+
# Coverage directory used by tools like istanbul
89+
coverage
90+
*.lcov
91+
92+
# nyc test coverage
93+
.nyc_output
94+
95+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
96+
.grunt
97+
98+
# Bower dependency directory (https://bower.io/)
99+
bower_components
100+
101+
# node-waf configuration
102+
.lock-wscript
103+
104+
# Compiled binary addons (https://nodejs.org/api/addons.html)
105+
build/Release
106+
107+
# Dependency directories
108+
node_modules/
109+
jspm_packages/
110+
111+
# Snowpack dependency directory (https://snowpack.dev/)
112+
web_modules/
113+
114+
# TypeScript cache
115+
*.tsbuildinfo
116+
117+
# Optional npm cache directory
118+
.npm
119+
120+
# Optional eslint cache
121+
.eslintcache
122+
123+
# Optional stylelint cache
124+
.stylelintcache
125+
126+
# Microbundle cache
127+
.rpt2_cache/
128+
.rts2_cache_cjs/
129+
.rts2_cache_es/
130+
.rts2_cache_umd/
131+
132+
# Optional REPL history
133+
.node_repl_history
134+
135+
# Output of 'npm pack'
136+
*.tgz
137+
138+
# Yarn Integrity file
139+
.yarn-integrity
140+
141+
# dotenv environment variable files
142+
.env
143+
.env.development.local
144+
.env.test.local
145+
.env.production.local
146+
.env.local
147+
148+
# parcel-bundler cache (https://parceljs.org/)
149+
.cache
150+
.parcel-cache
151+
152+
# Next.js build output
153+
.next
154+
out
155+
156+
# Nuxt.js build / generate output
157+
.nuxt
158+
dist
159+
160+
# Gatsby files
161+
.cache/
162+
# Comment in the public line in if your project uses Gatsby and not Next.js
163+
# https://nextjs.org/blog/next-9-1#public-directory-support
164+
# public
165+
166+
# vuepress build output
167+
.vuepress/dist
168+
169+
# vuepress v2.x temp and cache directory
170+
.temp
171+
172+
# Docusaurus cache and generated files
173+
.docusaurus
174+
175+
# Serverless directories
176+
.serverless/
177+
178+
# FuseBox cache
179+
.fusebox/
180+
181+
# DynamoDB Local files
182+
.dynamodb/
183+
184+
# TernJS port file
185+
.tern-port
186+
187+
# Stores VSCode versions used for testing VSCode extensions
188+
.vscode-test
189+
190+
# yarn v2
191+
.yarn/cache
192+
.yarn/unplugged
193+
.yarn/build-state.yml
194+
.yarn/install-state.gz
195+
.pnp.*
196+
197+
### Node Patch ###
198+
# Serverless Webpack directories
199+
.webpack/
200+
201+
# Optional stylelint cache
202+
203+
# SvelteKit build / generate output
204+
.svelte-kit
205+
206+
# End of https://www.toptal.com/developers/gitignore/api/node
207+
208+
app.js
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Awari
2+
3+
This is an Elm implementation of the `Basic Compouter Games` Game Awari.
4+
5+
## Build App
6+
7+
- install elm
8+
9+
```bash
10+
yarn
11+
yarn build
12+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
6+
</head>
7+
8+
<body>
9+
<div id="elm-app-is-loaded-here" />
10+
<script src="app.js"></script>
11+
<script>
12+
var app = Elm.Main.init({
13+
node: document.getElementById("elm-app-is-loaded-here"),
14+
flags: {}
15+
});
16+
</script>
17+
</body>
18+
19+
</html>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"type": "application",
3+
"source-directories": [
4+
"src"
5+
],
6+
"elm-version": "0.19.1",
7+
"dependencies": {
8+
"direct": {
9+
"elm/browser": "1.0.2",
10+
"elm/core": "1.0.5",
11+
"elm/html": "1.0.0"
12+
},
13+
"indirect": {
14+
"elm/json": "1.1.3",
15+
"elm/time": "1.0.0",
16+
"elm/url": "1.0.0",
17+
"elm/virtual-dom": "1.0.2"
18+
}
19+
},
20+
"test-dependencies": {
21+
"direct": {},
22+
"indirect": {}
23+
}
24+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "04_Awari",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"license": "MIT",
6+
"scripts": {
7+
"live": "elm-live src/Main.elm --proxy-prefix=/api --proxy-host=http://localhost:8080/api --open --start-page=resources/index.html -- --output=app.js --debug",
8+
"build": "elm make src/Main.elm --optimize --output docs/app.js && cp -R resources/ docs/"
9+
},
10+
"devDependencies": {
11+
"elm-live": "^4.0.2"
12+
}
13+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
6+
</head>
7+
8+
<body>
9+
<div id="elm-app-is-loaded-here" />
10+
<script src="app.js"></script>
11+
<script>
12+
var app = Elm.Main.init({
13+
node: document.getElementById("elm-app-is-loaded-here"),
14+
flags: {}
15+
});
16+
</script>
17+
</body>
18+
19+
</html>

0 commit comments

Comments
 (0)