- 7 Wonders Duel + 7 Wonders Duel Pantheon (owner: Emanuele, ruleset, boardgame geek link)
- Agricola: All Creatures Big and Small (owner: Emanuele, ruleset, boardgame geek link
- Dice Throne: Season One (owner: Emanuele, ruleset, boardgame geek link)
- Elysium (owner: Emanuele, ruleset, boardgame geek link)
- Bloodborne - the Card Game (owner: Emanuele, [ruleset](http://bigbag.bg/userfiles/editor/file/bloodborne%20the%20card%20game%2
This file contains hidden or 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
// create a function called onumitama that accepts a number and returns 'LaL' | |
function onumitama(num) { | |
// if num is divisible by 3 and by 5, return 'LaLPoP' | |
if (num % 3 === 0 && num % 5 === 0) { | |
return 'LaLPoP' | |
} | |
// if num is divisible by 3, return 'LaL' | |
if (num % 3 === 0) { | |
return 'LaL' | |
} |
This file contains hidden or 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
#include <stdio.h> | |
int main() { | |
int j; | |
int i; | |
printf("Tell i\n"); | |
scanf("%d", &i); | |
printf("Tell j\n"); | |
scanf("%d", &j); | |
int sum = i + j; |
This file contains hidden or 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
{"lastUpload":"2020-04-20T11:00:05.184Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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 cljbrave.day4) | |
(defn digits | |
[n] | |
(loop [result (list) | |
n n] | |
(if (pos? n) | |
(recur (conj result (rem n 10)) | |
(quot n 10)) | |
result))) |
This file contains hidden or 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
;; https://adventofcode.com/2019/day/3 | |
;; EXERCISES | |
(ns cljbrave.core) | |
(defrecord Movement [direction length]) | |
(defrecord Coordinate [x y]) |
This file contains hidden or 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
;; https://adventofcode.com/2019/day/2 | |
(def intcodeProgram []) ;; get from the exercise | |
(defn op | |
[step program instruction] | |
(let [pos1 (nth program (nth program (+ step 1))) | |
pos2 (nth program (nth program (+ step 2))) | |
resultPos (nth program (+ step 3))] | |
(assoc program resultPos (instruction pos1 pos2)))) |
This file contains hidden or 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
;; https://adventofcode.com/2019/day/2 | |
(def intcodeProgram []) | |
(defn op | |
[step program instruction] | |
(let [pos1 (nth program (nth program (+ step 1))) | |
pos2 (nth program (nth program (+ step 2))) | |
resultPos (nth program (+ step 3))] | |
(assoc program resultPos (instruction pos1 pos2)))) |
This file contains hidden or 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
;; https://adventofcode.com/2019/day/1 | |
(def massDatabase []) ;; get the input in the link | |
(defn roundDown | |
[num] (int (Math/floor num))) | |
(defn fuelRequired | |
[mass] | |
(- (roundDown (/ mass 3)) 2) | |
) |
This file contains hidden or 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
;; https://adventofcode.com/2019/day/1 | |
(def massDatabase []) ;; get the input in the link | |
(defn roundDown | |
[num] (int (Math/floor num))) | |
(defn fuelRequired | |
[mass] | |
(- (roundDown (/ mass 3)) 2) | |
) |
NewerOlder