Skip to content

Commit 31d18c8

Browse files
committed
Add the "τ" hole
Updates #3
1 parent 2753898 commit 31d18c8

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎routes/answers.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,4 +649,5 @@ Buzz`,
649649
"π": `3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989`,
650650
"φ": `1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959395829056383226613199282902678806752087668925017116962070322210432162695486262963136144381497587012203408058879544547492461856953648644492410443207713449470495658467885098743394422125448770664780915884607499887124007652170575179788341662562494075890697040002812104276217711177780531531714101170466659914669798731761356006708748071013179523689427521948435305678300228785699782977834784587822891109762500302696156170025046433824377648610283831268330372429267526311653392473167111211588186385133162038400522216579128667529465490681131715993432359734949850904094762132229810172610705961164562990981629055520852479035240602017279974717534277759277862561943208275051312181562855122248093947123414517022373580577278616008688382952304592647878017889921990270776903895321968198615143780314997411069260886742962267575605231727775203536139362`,
651651
"𝑒": `2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431173012381970684161403970198376793206832823764648042953118023287825098194558153017567173613320698112509961818815930416903515988885193458072738667385894228792284998920868058257492796104841984443634632449684875602336248270419786232090021609902353043699418491463140934317381436405462531520961836908887070167683964243781405927145635490613031072085103837505101157477041718986106873969655212671546889570350354`,
652+
"τ": `6.2831853071795864769252867665590057683943387987502116419498891846156328125724179972560696506842341359642961730265646132941876892191011644634507188162569622349005682054038770422111192892458979098607639288576219513318668922569512964675735663305424038182912971338469206972209086532964267872145204982825474491740132126311763497630418419256585081834307287357851807200226610610976409330427682939038830232188661145407315191839061843722347638652235862102370961489247599254991347037715054497824558763660238982596673467248813132861720427898927904494743814043597218874055410784343525863535047693496369353388102640011362542905271216555715426855155792183472743574429368818024499068602930991707421015845593785178470840399122242580439217280688363196272595495426199210374144226999999967459560999021194634656321926371900489189106938166052850446165066893700705238623763420200062756775057731750664167628412343553382946071965069808575109374623191257277647075751875039155637155610643424536132260038557532223918184328403978`,
652653
}

‎routes/hole.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var preambles = map[string]string{
4444
"π": `<h1>π</h1><p>Print π (Pi) to the first 1,000 decimal places.</p>`,
4545
"φ": `<h1>φ</h1><p>Print φ (Phi) to the first 1,000 decimal places.</p>`,
4646
"𝑒": `<h1>e</h1><p>Print 𝑒 (Euler's number) to the first 1,000 decimal places.</p>`,
47+
"τ": `<h1>τ</h1><p>Print τ (Tau) to the first 1,000 decimal places.</p>`,
4748
}
4849

4950
func hole(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {

‎routes/home.go‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ func home(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
6969
WHEN 'π' THEN 13
7070
WHEN 'φ' THEN 14
7171
WHEN '𝑒' THEN 15
72-
WHEN 'arabic-to-roman' THEN 16
73-
WHEN 'roman-to-arabic' THEN 17
74-
WHEN 'spelling-numbers' THEN 18
72+
WHEN 'τ' THEN 16
73+
WHEN 'arabic-to-roman' THEN 17
74+
WHEN 'roman-to-arabic' THEN 18
75+
WHEN 'spelling-numbers' THEN 19
7576
END, row_number`,
7677
printHeader(w, r, 200),
7778
)
@@ -165,6 +166,8 @@ func home(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
165166
w.Write([]byte(`Medium><a href=φ>φ`))
166167
case "𝑒":
167168
w.Write([]byte(`Medium><a href=𝑒>𝑒`))
169+
case "τ":
170+
w.Write([]byte(`Medium><a href=τ>τ`))
168171
}
169172

170173
w.Write([]byte(`</a><table>`))

‎routes/scores.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var holes = [][]string{
2929
{"π", "π"},
3030
{"φ", "φ"},
3131
{"𝑒", "𝑒"},
32+
{"τ", "τ"},
3233
}
3334

3435
var langs = [][]string{

0 commit comments

Comments
 (0)