Commit 323b7b04 authored by owlo's avatar owlo

mepping!

parent f04d3404
No preview for this file type
......@@ -14,6 +14,7 @@ import (
"strings"
"time"
flour "gitlab.com/localtoast/flourPower"
"golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/armor"
"localtoast.net/localtoast/Ogopogo/libs"
......@@ -568,12 +569,29 @@ func main() {
if ok {
w.Header().Set("Authorization", "ok")
w.WriteHeader(http.StatusOK)
room := flour.Dough(17, 17)
room = flour.Oven(room, "X", 17, 17)
space := ""
for x := 0; x < 296; x++ {
if x != 142 {
space += "X"
} else {
for x := range room {
done := false
if room[x].X == 7 && room[x].Y == 7 {
space += "@"
done = true
}
if room[x].X > 3 && room[x].Y == 7 && room[x].X < 14 && done == false {
space += " "
done = true
}
if room[x].X > 3 && room[x].Y == 8 && room[x].X < 14 && done == false {
space += " "
done = true
}
if room[x].X > 3 && room[x].Y == 6 && room[x].X < 14 && done == false {
space += " "
done = true
}
if done == false {
space += "X"
}
}
w.Write([]byte(space))
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment