15,892,298 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by DosNecro (Top 8 by date)
DosNecro
29-Mar-24 13:34pm
View
My mistake, I updated the question now. I was able to get the player movement and initialization to work. However, the car movement that is supposed to happen on every player movement is not working.
DosNecro
29-Mar-24 5:49am
View
I updated the question with a few changes I made to the movePlayer function. However, the game logic is executing without errors, but the expected changes (movement of the player or updates to the game grid) aren't visually reflected on the terminal.
DosNecro
28-Mar-24 7:29am
View
10 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 3 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 0 0 0 1 1 1 1 0 0
0 0 1 0 0 1 0 0 0 1 0 0 1 0 0
0 0 1 0 0 1 1 1 1 1 1 1 1 0 0
0 0 1 0 0 0 0 0 0 1 0 0 0 0 0
0 0 1 0 0 0 0 0 4 1 0 0 0 0 0
0 0 1 1 1 1 1 2 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
the first line represents the dimensions of the grid (rows and columns)
1 represents the road (path the car will take)
2 represents the car
3 for the player
4 for the goal
DosNecro
21-Feb-24 4:44am
View
I tried implementing this, however, now every time the player moves, a player (P) is printed on the previous position the player was in.
DosNecro
21-Feb-24 4:41am
View
I tried implementing this. However, this time, every time the player moves, a road ('.') is printed on the grid of the previous position of the player.
DosNecro
17-Apr-23 14:09pm
View
Thanks, but I was able to use errno and usleep to fix the issue. Any chance you know how to check for out-of-bounds access when updating the ants' position and direction? Cause this is giving me segmentation fault errors.
DosNecro
17-Apr-23 13:56pm
View
Any chance you know how to check for out-of-bounds access when updating the ants' position and direction? Cause this is giving me segmentation fault errors.
DosNecro
17-Apr-23 13:41pm
View
I tried your method, however, it didn't give me a fix. Instead, I used errno and usleep to help fix the issue, and it worked. Though I have to input the time in as milliseconds instead of seconds.
Show More