Commit graph

38 commits

Author SHA1 Message Date
4359e77222
Add example wordlist 2022-04-21 12:22:42 -05:00
9a02456aeb
Merge branch 'main' of git.exozy.me:Ta180m/SD 2022-04-21 12:20:08 -05:00
a356cd0425
Decrease example cards weight to prevent overflow when used with CD 2022-04-21 12:19:39 -05:00
Anthony Wang
b0568c843e
Add link to CD in the README 2022-04-18 20:06:49 -05:00
aa1f53c83e
Use pointers for struct functions to avoid copies 2022-03-31 14:04:51 -05:00
d39bb36216
Add more usage instructions 2022-03-31 12:17:33 -05:00
205e55ff65
Weigh incorrect answers more heavily 2022-03-30 22:27:55 -05:00
13e921e9c0
Add > prompt for key 2022-03-30 09:06:00 -05:00
1bca3da2e7
Adjust weight function 2022-03-30 08:50:59 -05:00
71dbd4904d
Change segmentTree member functions to uppercase 2022-03-29 07:51:11 -05:00
d00b8abc5a
Return from main function instead of os.exit 2022-03-29 07:49:20 -05:00
a6f1a57e0a
Seed RNG if not debugging 2022-03-29 07:46:37 -05:00
0f9882eaaa
Change billions to millions because sqlite slow :( 2022-03-29 07:44:43 -05:00
0907db1b0b
More debug logging 2022-03-29 07:43:57 -05:00
7a082a7f2d
Run gofumpt on everything 2022-03-28 21:20:38 -05:00
82cca1a6c3
Add note about segment trees to README 2022-03-28 21:18:08 -05:00
46c565b619
Add a usage section to README 2022-03-28 21:15:44 -05:00
a6647501a6
Add an example script for generating Chinese character flashcards 2022-03-28 21:06:22 -05:00
556149c189
Add note to README about possible C port 2022-03-28 20:40:03 -05:00
252e4ae4dd
Move segment tree to separate file 2022-03-28 19:00:55 -05:00
Anthony Wang
5ec5caa999
Add Performance section to README 2022-03-28 15:21:46 -05:00
8962c6b9a0
Use seg[1] to keep track of sum instead of a sum var 2022-03-28 15:11:08 -05:00
5719668a81
Make more of the output debugging output 2022-03-28 12:08:49 -05:00
4936d52dc5
Use struct for segmentTree 2022-03-28 12:04:13 -05:00
24d2743720
Verbose logging 2022-03-28 11:51:19 -05:00
8d3e071c9e
Ask for user confirmation before showing val 2022-03-28 11:44:03 -05:00
bd0ff43d83
Remove extra ints in function declarations 2022-03-28 11:39:43 -05:00
a9c4011549
Correctly upate database by maing sure it isn't locked 2022-03-28 11:35:27 -05:00
7ec4ce70a2
Choose random cards 2022-03-28 11:16:29 -05:00
48fefc813f
Build segtree from sqlite file 2022-03-28 10:20:00 -05:00
8cc9e542b5
Add segment tree implementation 2022-03-27 18:26:22 -05:00
81fe341a26
Don't use golang.org/x/term 2022-03-27 18:09:22 -05:00
2e0dac3994
Run go mod tidy 2022-03-27 18:02:49 -05:00
a5977b9500
Add golang.org/x/term module for raw input 2022-03-27 17:58:47 -05:00
f038ce5744
Add file with main function 2022-03-27 17:35:46 -05:00
d77179fe61
Use allowlist template for Go .gitignore 2022-03-27 17:35:29 -05:00
14532c9409
Create Go project with go mod init sd 2022-03-27 17:19:48 -05:00
Anthony Wang
170fcd0edb
Initial commit 2022-03-27 17:18:36 -05:00