Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
person-do-thing-llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen D
person-do-thing-llm
Commits
cd99288b
Commit
cd99288b
authored
2 months ago
by
Stephen D
Browse files
Options
Downloads
Patches
Plain Diff
randomize word
parent
1afef422
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
easy-words.txt
+8107
-0
8107 additions, 0 deletions
easy-words.txt
frontend.rb
+11
-1
11 additions, 1 deletion
frontend.rb
hard-words.txt
+7128
-0
7128 additions, 0 deletions
hard-words.txt
with
15246 additions
and
1 deletion
easy-words.txt
0 → 100644
+
8107
−
0
View file @
cd99288b
This diff is collapsed.
Click to expand it.
frontend.rb
+
11
−
1
View file @
cd99288b
...
@@ -3,7 +3,17 @@
...
@@ -3,7 +3,17 @@
require
'open3'
require
'open3'
require
'date'
require
'date'
word
=
"beach"
# TODO randomize
words
=
if
ARGV
[
0
]
==
'--hard'
puts
"Playing in HARD MODE"
File
.
open
(
"easy-words.txt"
)
{
|
f
|
f
.
read
}
else
puts
"Playing in EASY MODE"
File
.
open
(
"hard-words.txt"
)
{
|
f
|
f
.
read
}
end
.
lines
ARGV
.
pop
# needed so that `gets` works for some reason?
word
=
words
[
rand
(
words
.
size
)]
prompt
=
File
.
open
(
'prompt'
)
{
|
f
|
f
.
read
.
gsub
(
'{WORD}'
,
word
)
}
prompt
=
File
.
open
(
'prompt'
)
{
|
f
|
f
.
read
.
gsub
(
'{WORD}'
,
word
)
}
File
.
open
(
'prompt.tmp'
,
'w'
)
{
|
f
|
f
.
write
(
prompt
)
}
# easier than escaping in bash command lol
File
.
open
(
'prompt.tmp'
,
'w'
)
{
|
f
|
f
.
write
(
prompt
)
}
# easier than escaping in bash command lol
...
...
This diff is collapsed.
Click to expand it.
hard-words.txt
0 → 100644
+
7128
−
0
View file @
cd99288b
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment