Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

ikaneng Thekiso

Greenhorn
+ Follow
since Mar 20, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ikaneng Thekiso

Knute Snortum wrote:Pick one of your best attempts and post the code here.  Make sure it compiles.







So this is my best attempt it is like the one above but I fixed the syntax errors etc ,and I edited line 13 and 14 to read the dimensions of the array from 1 line instead of 2 lines.The problem I'm having with my code is that nothing is happening.I think it is the problem with my main class being empty.How would I fix that?
2 months ago

Knute Snortum wrote:

ikaneng Thekiso wrote:cool,so I want the code to read from a text file (the board of the game)
I SUPPLIED examples in my post above


But you didn't supply the errors you are encountering.  I can see compile-time errors from the code you posted.  I'd be very surprised if it executes.



7 7
.......
.......
....x..
....x..
....x..
...xx..
...sx.t

I want to read from a 2D array text file looking like this.This is the code that I wrote. I am creating a game board. The first line represents the dimensions of the board so the program must only read from the second line onwards.

I have attempted numerous ways of doing this such as using the scanner function etc. I was told by a friend of mine that my approach is wrong. How would I fix this code to do that particular function?
2 months ago
cool,so I want the code to read from a text file (the board of the game)
I SUPPLIED examples in my post above
2 months ago




hey guys I really appreciate all the help ,this is what I did but I am still encountering problems ......may someone maybe contact me on discord Kingika  #1976
2 months ago
http://www.cs.sun.ac.za/courses/cs114/


Hey guys I need help with my CS project I have no idea how to create the board the instructions for the game are in the link above
2 months ago