Skip to content

Commit befe8fa

Browse files
committed
Make "DFA Simulator" live
Closes #1006
1 parent be44dab commit befe8fa

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

config/holes.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ preamble = '''
611611

612612
['DFA Simulator']
613613
category = 'Computing'
614-
experiment = 1006
615614
links = [
616615
{ name = 'Wikipedia', url = '//en.wikipedia.org/wiki/Deterministic_finite_automaton' },
617616
]

routes/banner.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package routes
22

33
import (
44
"html/template"
5-
"strings"
65
"time"
76

87
"github.com/code-golf/code-golf/config"
@@ -17,7 +16,7 @@ type banner struct {
1716

1817
// TODO Allow a golfer to hide individual banners #709.
1918
func banners(golfer *golfer.Golfer, now time.Time) (banners []banner) {
20-
in := "in " + pretty.Time(time.Date(2023, time.November, 1, 0, 0, 0, 0, time.UTC))
19+
/* in := "in " + pretty.Time(time.Date(2023, time.November, 1, 0, 0, 0, 0, time.UTC))
2120
if strings.Contains(string(in), "ago") {
2221
in = "momentarily"
2322
}
@@ -28,7 +27,7 @@ func banners(golfer *golfer.Golfer, now time.Time) (banners []banner) {
2827
Body: "The <a href=/" + template.HTML(hole.ID) + ">" +
2928
template.HTML(hole.Name) + "</a> hole will go live " + in +
3029
". Why not try and solve it ahead of time?",
31-
})
30+
}) */
3231

3332
// Currently all the global banners require a golfer.
3433
if golfer == nil {

sql/a-schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CREATE TYPE hole AS ENUM (
2828
'abundant-numbers-long', 'arabic-to-roman', 'arithmetic-numbers',
2929
'arrows', 'ascii-table', 'brainfuck', 'catalan-numbers',
3030
'catalans-constant', 'christmas-trees', 'collatz', 'css-colors', 'cubes',
31-
'day-of-week', 'diamonds', 'divisors', 'emirp-numbers',
31+
'day-of-week', 'dfa-simulator', 'diamonds', 'divisors', 'emirp-numbers',
3232
'emirp-numbers-long', 'emojify', 'evil-numbers', 'evil-numbers-long',
3333
'fibonacci', 'fizz-buzz', 'foo-fizz-buzz-bar', 'forsyth-edwards-notation',
3434
'fractions', 'game-of-life', 'gijswijts-sequence', 'happy-numbers',

0 commit comments

Comments
 (0)