Skip to content

Instantly share code, notes, and snippets.

a = input("Give me a number: ")
b = input("Give me another number: ")
if int(a) > int(b) and int(a) % int(b) == 1:
print("You are lucky!!!")
else:
print("Sorry, try again!")
(ns text-adventure.core
(:gen-class))
(def state (atom {:x 0 :y 0}))
(def directions {
:right (fn [m] (assoc m :x (inc (:x m))))
:left (fn [m] (assoc m :x (dec (:x m))))
:up (fn [m] (assoc m :y (inc (:y m))))