Hack Forums
[Java] Challange me - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] Challange me (/showthread.php?tid=5917111)

Pages: Pages 1 2


Challange me - pms - Dec 9, 2018

hi,
I'm in need of something to do with java, give me some tips/challanges on what i can code. And i will provide you the code via pastebin.

experience level: know a bit more then the basics.


RE: Challange me - Tenno - Dec 9, 2018

(Dec 9, 2018 09:29 AM)pms. Wrote:  hi,
I'm in need of something to do with java, give me some tips/challanges on what i can code. And i will provide you the code via pastebin.


If you'd like a challenge, I am looking to make a Java application that executes Powershell code, however, the app will need in integrated Powershell console. Maybe you could attempt to make that?

Not sure what your level of expertise is at Java, but this could be a nice challenge.

Happy coding!


RE: Challange me - pms - Dec 9, 2018

(Dec 9, 2018 10:09 AM)Tenno Wrote:  If you'd like a challenge, I am looking to make a Java application that executes Powershell code, however, the app will need in integrated Powershell console. Maybe you could attempt to make that?

Not sure what your level of expertise is at Java, but this could be a nice challenge.

Happy coding!

Yeah thats way to far from my experience level, forgot to add that to the thread.


RE: Challange me - hash - Dec 10, 2018

A fun challenge is to make a tic tac toe with the console. Think about how you deal with a draw (should be triggered when there will be no winner in advance), winning and losing.

What software patterns are you going to use? And make it in a way that the GUI (console) is detachable so you can always change that out.


RE: Challange me - pms - Dec 10, 2018

(Dec 10, 2018 03:48 AM)Sapporo Wrote:  A fun challenge is to make a tic tac toe with the console. Think about how you deal with a draw (should be triggered when there will be no winner in advance), winning and losing.

What software patterns are you going to use? And make it in a way that the GUI (console) is detachable so you can always change that out.

Fantastic idea, going to try this out once i get home.


(Dec 10, 2018 03:48 AM)Sapporo Wrote:  A fun challenge is to make a tic tac toe with the console. Think about how you deal with a draw (should be triggered when there will be no winner in advance), winning and losing.

What software patterns are you going to use? And make it in a way that the GUI (console) is detachable so you can always change that out.

I started the project, after around 30 minutes i gave up completely, it was way out of my skillset. Kinda made me mad that I was'nt able to do it, but ill get there some day.


RE: Challange me - hash - Dec 10, 2018

(Dec 10, 2018 06:00 AM)pms. Wrote:  Fantastic idea, going to try this out once i get home.



I started the project, after around 30 minutes i gave up completely, it was way out of my skillset. Kinda made me mad that I was'nt able to do it, but ill get there some day.

Haha it is often one of the first things you program when in uni. Start by

You have 9 places to put your X or O in.
Code
public static final int ROWS = 3, COLS = 3; // number of rows and columns
public static int[][] board = new int[ROWS][COLS]; // game board in 2D array =)
public static int currentState;  // the current state of the game
public static int currentPlayer; // the current player (X or O)  
                                                 
Now use a scanner to receive input. something like row/col
11 = left top
33 = right bottom


RE: Challange me - pms - Dec 10, 2018

(Dec 10, 2018 08:29 AM)Sapporo Wrote:  Haha it is often one of the first things you program when in uni. Start by

You have 9 places to put your X or O in.
Code
public static final int ROWS = 3, COLS = 3; // number of rows and columns
public static int[][] board = new int[ROWS][COLS]; // game board in 2D array =)
public static int currentState;  // the current state of the game
public static int currentPlayer; // the current player (X or O)  
                                                 
Now use a scanner to receive input. something like row/col
11 = left top
33 = right bottom

Thanks for the help, still cant manage to do it, what would you recommend me reading more on?


RE: Challange me - hash - Dec 10, 2018

(Dec 10, 2018 08:42 AM)pms. Wrote:  Thanks for the help, still cant manage to do it, what would you recommend me reading more on?

https://www.instructables.com/id/Make-Tic-Tac-Toe-in-Java/

This is a really good tutorial that goes in-depth how to make tic tac toe. It has nice emphasis on software design and what classes do and stuff. Don't just copy code, read the text and type the code yourself so you get a feel for it!


RE: Challange me - pms - Dec 10, 2018

(Dec 10, 2018 08:51 AM)Sapporo Wrote:  https://www.instructables.com/id/Make-Tic-Tac-Toe-in-Java/

This is a really good tutorial that goes in-depth how to make tic tac toe. It has nice emphasis on software design and what classes do and stuff. Don't just copy code, read the text and type the code yourself so you get a feel for it!

Thank you once again. Ill read through the text and tell you how it goes.


RE: Challange me - hash - Dec 10, 2018

(Dec 10, 2018 08:52 AM)pms. Wrote:  Thank you once again. Ill read through the text and tell you how it goes.

Looking forward hearing from you!


RE: Challange me - jammy47 - Dec 10, 2018

may be try a code injector.


RE: Challange me - pms - Dec 10, 2018

(Dec 10, 2018 11:57 AM)jammy47 Wrote:  may be try a code injector.

I dont think you fully read the thread, thats way beyond my skill level.


RE: Challange me - jammy47 - Dec 10, 2018

(Dec 10, 2018 12:00 PM)pms. Wrote:  I dont think you fully read the thread, thats way beyond my skill level.

I think you are underestimating yourself. If you only see the logic behind a c++ code injector, you will actually laugh. Try harder bro.


RE: Challange me - pms - Dec 10, 2018

(Dec 10, 2018 12:01 PM)jammy47 Wrote:  I think you are underestimating yourself. If you only see the logic behind a c++ code injector, you will actually laugh. Try harder bro.

c++? i dont even know c++ yet, what do you mean haha.


RE: Challange me - jammy47 - Dec 10, 2018

(Dec 10, 2018 12:11 PM)pms. Wrote:  c++? i dont even know c++ yet, what do you mean haha.

Well, You dont have to be so much of a pro in c++ to understand code injection. Pm me if you need any help. Most of the times, windows itself will give you the power to abuse itself.