Questions tagged [beginner]
Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.
7,573 questions
3
votes
2
answers
137
views
rock paper scissors game with randomized system choices. NOT using rnd()
Here is the question I was trying to answer:
[11] Write a program that plays the game “Rock, Paper, Scissors.” If you are
not familiar with the game do some research (e.g., on the Web using
Google). ...
8
votes
5
answers
2k
views
Console-based Casino Game in C++
I made a casino game that runs in the console for my grade 10 final project, and I received a 93% as my grade. I'm looking for feedback in areas such as syntax, user experience and efficiency. I would ...
2
votes
0
answers
85
views
openprocessing.org program - After screen tap, erase red circle, pause and lastly draw new white circle
I am new to programming using the site openprocessing.org.
The code given does the following on my iPad:
Draw a red circle
Wait until I finger tap near the red circle’s center
Erase the red circle
...
1
vote
0
answers
23
views
GUI button clicks start runspaces that take care of heavy processing tasks
I'm currently updating a ping script I maintain at work, transitioning from WinForms to WPF. Because of this I've started learning about and incorporating runspaces to keep the GUI responsive during ...
4
votes
0
answers
57
views
SHA1 Algorithm Implementation in Zig
I have implemented the SHA1 algorithm in Zig, as a learning exercise, to teach myself both Zig and the actual algorithm behind SHA1. Now the second part I think I understood well enough. The ...
6
votes
2
answers
429
views
(Codewars) Goldbach's Conjecture (by @rsalgado) in Ruby
Link to kata: linkRank: 6 kyuKata author: @rsalgado
I have been recently learning Ruby-lang and have been attempting to solve the following kata from Codewars involving Goldbach's Conjecture:
...
3
votes
1
answer
109
views
Custom Math Parser for trivia game
This parser is made for part of larger trivia game, and only allowed numbers are positive integers. So negative or decimal numbers should return -1 as sign of error.
I'm pretty new to programming and ...
9
votes
3
answers
2k
views
Solver for Wordle puzzle
After a success with the Jumble puzzle solver, I am doing a Wordle puzzle solver. I know many other Wordle solvers have been posted, yet this is my original version, which emphasizes list ...
3
votes
1
answer
79
views
Implement a matrix and access its elements
I have just started to learn how to program in Scheme using the LispPad app on my iPad. I want to know if the following is the best way to implement a matrix and access its elements.
This code ...
5
votes
3
answers
223
views
Sieve of Eratosthenes with Wheel Factorization in C++ version 2
I have implemented Sieve of Eratosthenes with Wheel Factorization in C++ again, this time using a bigger wheel and much more complicated C++ syntax, to familiarize myself with C++ and see how fast I ...
3
votes
2
answers
747
views
Retrieval-Augmented Generation from text files
Context: I'm a complete newbie trying to get good at structuring my code. I'm aware that I'm supposed to do my own research with docs, but I don't know what specific docs I should be reading for this ...
5
votes
2
answers
123
views
Compare two files in 16-bit DOS assembly
The task is to do a byte-by-byte comparison and print whether the files are equal or not.
Code:
...
5
votes
2
answers
112
views
Command-line Tool That Reads a Text File and Calculates Basic Statistics
TLDR: First time dev in Go moving from Java and I need feedback on my simple CLI Tool.
I wanted to get competent in Go as a very junior developer, so this is my first basic project in go. I set a goal ...
6
votes
3
answers
405
views
Function which returns arithmetic expression based on an operator
For the following code, I have trouble improving it.
I need to write a function getExpression(level, operator) which has one integer parameter representing a level ...
4
votes
1
answer
69
views
IBM File Processing and PDF Conversion App Using PyQt6 and FPDF
I am trying to convert a 111MB TEXT file to PDF quickly. I'm currently using the FPDF library, and large files take about 40 minutes to process. The text file is an IBM carriage control (ANSI) file ...