projects
/
ozzloy@gmail.com
/
realm-of-racket-journey
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c64513
)
start guess with upper and lower set to 1 and 100
author
daniel watson
<ozzloy@gmail.com>
Thu, 10 Mar 2016 05:43:54 +0000
(21:43 -0800)
committer
daniel watson
<ozzloy@gmail.com>
Thu, 10 Mar 2016 05:43:54 +0000
(21:43 -0800)
guess.rkt
[new file with mode: 0644]
patch
|
blob
diff --git a/guess.rkt
b/guess.rkt
new file mode 100644
(file)
index 0000000..
f5c9cca
--- /dev/null
+++ b/
guess.rkt
@@ -0,0
+1,8
@@
+#! /usr/bin/env racket
+#lang racket/base
+
+(define lower 1)
+(define upper 100)
+
+(define (guess)
+ (quotient (+ lower upper) 2))