Skip to content
Sign UpLog In
Profile icon

Chima Nwosu

@ChimaNwosu1
Repls
Community
ChimaNwosu1
ChimaNwosu1
shared a Post
2 years ago
Maximum value in data set
The program ascertains the greatest value in an array of integers
Greatest/ second greatest value in an array
C++
DynamicSquid
DynamicSquid
Couldn't you also do: int greatest = a[0]; for (int i = 1; i greatest) greatest = a[i]; } cout << greatest; `2 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
So I am trying to make the tetris game and I pretty much got the gist of everything but there is one problem: When the tetromino block gets close the
Tetris
C++
DynamicSquid
DynamicSquid
It's almost never the compiler. On line 48: cout << "\033[0;32m" << "■" << ' '; You might want to remove the space after the block3 years ago
DynamicSquid
DynamicSquid
It's almost never the compiler. On line 48: cout << "\033[0;32m" << "■" << ' '; You might want to remove the space after the block3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Prints a right triangular pyramid
Pyramid
C++
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Checks to see if its a palindrome or not
Palindrome  checker
C++
Jakman
Jakman
May i use this idea to remake this program in rust? 3 years ago
Jakman
Jakman
Nice3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Rules are simple: Avoid obstacle Don't let it fall to the bottom
Money rain
C++
math_genius
math_genius
How do i move?3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Avoid obstacles and catch the fruit.
New Game
C++
DynamicSquid
DynamicSquid
you should make it so that the player moves constantly3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
These may come in useful if anyone is trying to incorporate trig in their code. P.s I'm looking to create a project in C++ but don't have any ideas.
Trig calculations
C++
DynamicSquid
DynamicSquid
projects in c++? Create a library management system. It's actually a really fun project about OOP3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
This code is an easier and condensed version of the Coordinate/Moving repl I shared a couple weeks back. I think this would be useful for anyone wanti
New Game
C++
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Hey guys, If you look on the class.h file and scroll down to line 71-74 you will see the the rand() function being used. However, when this code is be
DynamicSquid
DynamicSquid
It seems to be working fine for me...3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Got this from a snake game but reduced the code so I can understand it. Tell me what you guys think; whether I should simplify it or if there is a bet
Coordinate system/ Moving
C++
Highwayman
Highwayman
I’d suggest instead only re-writing parts of the screen when the character moves. Also I suggest making the cursor disappear using \e[?25l Here’s an example: https://repl.it/@Highwayman/Coordinate-system-Moving3 years ago
CSharpIsGud
CSharpIsGud
There is indeed a better method that would keep the terminal from flickering when you move but its probably more complicated than whatever snake game you got it from.3 years ago
ChimaNwosu1
ChimaNwosu1
shared a Post
3 years ago
Hey I'm still a beginner in C++ and I want to know how to make a gaming d-pad. Do you guys have any coding advice on how to do so.
Coordinate system/ Moving
C++
Highwayman
Highwayman
put "break;" on line 40 to fix both s and d running.3 years ago