Commit Graph

38 Commits

Author SHA1 Message Date
raul 8b87cce11c Completed goroutine channels exercise
Finally starting to get the hang of how channels in goroutines work,
just pass the values around using arrows after creating the channel
using c := make(chan $TYPE)
2024-03-07 17:59:18 +01:00
raul 91d4985651 Can now add to vector, still practicing channels 2024-03-06 18:04:34 +01:00
raul a3b8027714 Completing 2nd goroutine example 2024-03-05 19:57:16 +01:00
raul 9e978f0bcf Improved UX by reusing scanLine function 2024-03-03 10:29:50 +01:00
raul a89ca3987b Separate goroutines exercise into different files
Also went ahead and added a way to interactively select which function
to execute so I can easily execute each file individually, I still have
to learn channels and passing data through these channels but I don't
want old code possibly bothering me
2024-03-02 10:00:45 +01:00
raul 9e45c522c8 Added renamer exercise 2024-02-28 06:45:40 +01:00
raul 2577b92b2f Added background checker with goroutines 2024-02-27 07:04:25 +00:00
raul 8ad40f4930 Practicing goroutines 2024-02-26 10:59:46 +00:00
raul 207c3fafcb Moved file-reader to its own repo 2024-02-14 16:14:46 +01:00
raul 887e0556bf No longer rendering spaces as secret characters 2024-02-13 07:37:54 +00:00
raul 30d42a3219 Added win condition checking
You can actually win the game now
2024-02-13 07:32:07 +00:00
raul f29f803ddb Added guessing individual word letters 2024-02-13 06:56:52 +01:00
raul ca05ff2eba Fixed crashing without arguments 2024-02-12 12:04:28 +00:00
raul 8ab370f705 Cleaning up code and adding hiddenChar viewer 2024-02-12 07:00:25 +01:00
raul 092619f4bb Tweaking 2024-02-11 16:30:42 +01:00
raul 01a822c9ab Added the actual game 2024-02-10 22:20:19 +01:00
raul d1fddbe7ee Added life system 2024-02-10 15:13:59 +01:00
raul 4ea49a46b0 Learning structs and cleaning up old code 2024-02-10 13:44:41 +01:00
raul ab76136b4b Adding interactive prompts
Planning to make a rudimentary hangman game, good practice for learning
structs
2024-02-09 21:28:57 +01:00
raul fa015f4837 Added guessing string 2024-02-09 09:35:46 +00:00
raul de2229ada1 Cleaned up functions 2024-02-08 12:31:01 +00:00
raul 0fe0cc29a0 Added reading a random line from a file 2024-02-07 17:15:34 +01:00
raul 1bf9e3e27c Figured out how to add file lines to array 2024-02-06 17:12:29 +01:00
raul 5df40a8847 Added file-reader exercise 2024-02-04 09:45:14 +01:00
raul 4b34de5781 Added ability to input custom delay 2024-02-01 12:40:28 +00:00
raul 4913df663a Added counter exercise 2024-01-31 07:43:11 +00:00
raul fde585b7ad Completed exercise and added min-max-array library
I'm done with this for now, gonna move on to newer projects instead of
getting stuck here
2024-01-31 07:19:14 +00:00
raul 20a539b9c4 Tweaking and improving UX 2024-01-30 09:35:22 +00:00
raul cfaf807701 Severely expanded functionality
Also, cleaner code!
2024-01-30 08:42:16 +00:00
raul 6f3370693d Starting new exercise 2024-01-30 06:47:29 +01:00
raul ce1106d3b3 Finished arrays exercise
I'm done with this exercise, it has become so convoluted that I can't
comprehend the codebase anymore, here be dragons
2024-01-29 17:40:49 +01:00
raul e7f5cec04c Added ability to input and store numbers 2024-01-28 07:41:55 +01:00
raul 58aeefff0f Removed cobra and added basic logic
Cobra was complicating things too much so I'm gonna stick to basic
switch statements for now when handling choices
2024-01-27 22:31:15 +01:00
raul d5183387ec Having fun with Cobra
Seems like a pretty decent library for creating CLI apps, I'll have to
practice with it more eventually
2024-01-26 22:27:27 +01:00
raul bb1cf72840 Playing with arrays 2024-01-26 18:53:59 +01:00
raul 41f0d4a1f8 Added ability to input names with spaces
I finally figured out how to use the bufio library but I also had to get
acquainted with another library for strings to trim bufio's appended
newlines
2024-01-24 06:56:48 +01:00
raul 47d305243a Organized code and practiced error handling
Just found out nil is the equivalent of NULL
2024-01-22 14:23:12 +01:00
raul 9964aa916e Added Golangr exercise
I'm gonna be picking up exercises from wherever I can manage to find on
the Internet, I'm still too green to start a personal project since I
still haven't dipped my toes in more advanced things like real error
handling and OS/Network interaction
2024-01-22 14:02:07 +01:00