Data update

This commit is contained in:
Ingy döt Net 2025-02-27 18:35:13 -05:00
parent 8e4e15fa56
commit 72eb4943cb
1853 changed files with 35514 additions and 9441 deletions

View file

@ -1,6 +1,5 @@
print "Enter an equation in RPN form using all of, and"
print "only the following single digits which evaluates"
print "to 24. Only '*', '/', '+' and '-' are allowed:"
print "Enter an equation in RPN form using all of, and only "
print "the following single digits which evaluates to 24:"
func game .
len cnt[] 9
write ">> "

View file

@ -1,6 +1,6 @@
require'misc'
deal=: 1 + ? bind 9 9 9 9
rules=: smoutput bind 'see http://en.wikipedia.org/wiki/24_Game'
deal=: 1 + ? @ 9 9 9 9
rules=: echo @ 'see http://en.wikipedia.org/wiki/24_Game'
input=: prompt @ ('enter 24 expression using ', ":, ': '"_)
wellformed=: (' '<;._1@, ":@[) -:&(/:~) '(+-*%)' -.&;:~ ]