This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function solution (pemain, dadu) { | |
console.log('Initiating Game') | |
const initiateGame = () => { | |
if (pemain <= 1){ | |
console.log('ERROR: Pemain harus lebih dari 1'); | |
return {}; | |
} else { | |
let obj = {}; | |
for (i=1; i<=pemain; i++){ | |
obj[i] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn make | |
"Create the route for the applications" | |
[service-interceptor] | |
(expand-routes | |
[[["/" ^:interceptors [catcher | |
service-interceptor | |
(body-params/body-params) | |
middlewares/cookies | |
(middlewares/session) | |
(anti-forgery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns alpha.app.interceptors | |
(:require [io.pedestal.interceptor :refer [interceptor]] | |
[alpha.pages.dummy :as tpl] | |
[alpha.pages.arie :as apages] | |
[ring.util.response :as ring-resp] | |
[alpha.database.impl.dumbdb :as dumbdb] | |
[alpha.database.api.users :as user] | |
[schema.core :as s])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns alpha.pages.arie | |
(:require | |
[hiccup.page :refer [html5]] | |
[net.cgrand.enlive-html :as enlive :refer [deftemplate defsnippet]])) | |
;;SNIPPETS | |
(defsnippet head "build/index.html" | |
[:head] | |
[app-state]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<a href="index.html"></a><div>Games</div> | |
<ul> | |
<li><a href="#"> | |
</a><div>Duel</div> | |
</li> | |
<li><a href="#"> | |
</a><div>Quizzes</div> | |
</li> | |
<li><a href="#"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<a href="index.html"><div>Games</div></a> | |
<ul> | |
<li><a href="#"> | |
<div>Duel</div> | |
</a></li> | |
<li><a href="#"> | |
<div>Quizzes</div> | |
</a></li> | |
<li><a href="#"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ | |
* | |
* Uses the built in easing capabilities added In jQuery 1.1 | |
* to offer multiple easing options | |
* | |
* TERMS OF USE - jQuery Easing | |
* | |
* Open source under the BSD License. | |
* |