Tic Tak Toe game logic using Artificial Intelligence using JAVA [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to develop a logic for tic-tak-toe game using JAVA language(Standalone program only, no UI).
Concept is, game will play between human and machine(Artificial Intelligence).
can you please guide me.
Thanks in advance :)
Regards,
Subaan

tic-tak-toe is so computationally simple, you could just search the whole problem space exhaustively using mini-max.
Here is a post I found using google search detailing how to do this in java. I reviewed the article and it includes :
detailed code of how to get it working
great images of how to imagine and picture the computation
step by step conceptual walk through of how the problem can be solved
it is command line, like you asked

For game playing, the minimax algorithm is usefull. You should be able to find plenty of imformation about it.

Related

2D Real time graphics in Java (IntelliJ) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 months ago.
Improve this question
I'm developing a program that need to display 3 real time graphs, currently I'm working on IntelliJ but if needed I'll move to another IDE like NetBeans, I've been searching some options but I have no clear idea of the direction what would be the best for this kind of aplications.
This will be running on a windows bases enviroment
My observed options are trying JFreeChart but seems to be not so good for the real time nature, I haven't been able to find much documentation of JavaFX with this kind of application and idk how the java.awt.Graphics would work
If you are interested in real-time charting then you should have a look at this library: https://github.com/fair-acc/chart-fx
But doing real-time charts is more than just drawing something. It also involves data acquisition, data reduction, etc. You should do some research first in order to find the best solution for your specific problem.

Build Tetris game with a command-line interface using java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a java school project (software architecture) : I must code a Tetris game with a command-line interface and multiplayers in networks. My questions are:
Is there good tutorials about the command line interface with java to start with since I have not too much time and my searchs led almost to nothing useful.
I have already coded a tetris game using swing, can I use the code of some functionalities in my new project?
The teacher said it's easier to make a command line interface than to use JFrame but he didn't explain more so why it's easier?
Thank you for your answers ! :)
TheNewBoston has very good tutorials about java.
Yes you can use some code, for example your written classes. But maybe you must import a package.
Command line is easier than Jframe, because you get the same functionality , without shapes move around.

How can I develop games on android devices [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to develop games on android, am good with java.
i already tried using bitmaps and canvas to cook up a sample game, just a ball bouncing in the screen, but had issues with placing more items and stuffs.
I was told to go learn c++, can't i use java to build it? and if so how can i get API and documentation to help me in game development?
(need help thanks.)
You really don't need to know c++ to be able to program games on android. Go follow this tutorial and learn OpenGL ES 2.0:
http://developer.android.com/training/graphics/opengl/environment.html
This will help you in being able to learn shapes and then show you how to animate your shapes. For your purposes, I would say this is a great start.

Lamport's logical clock implementation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm working on a Lamport's logical clock for my college assignment and have to either implement or simulate it.
I'd Google a lot and searched here too but not getting any good result. Will anybody help me out in implementing this?
At least can provide some link or resource helpful to me which java classes of Java-API will be helpful or to be used for the implementation.
The most useful resource is going to be your own mind. Re-read the paper. What is the essential condition under which a Lamport clock is correct? (Hint -- you can guarantee one event happened after another.)
Have a look at this presentation. This tutorial is also helpful.
Then try to write out a description of the algorithm and how it works. Draw pictures.

Analyzing Music in Java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Greetings!
I was wondering if it's possible to make music-based games in Java? I've played games like Beat Hazzard and Audiosurf and stuff like that and I was considering making one like that - that dynamically loads songs the user selects and finds pieces of information (like bass notes) and does something in return.
I don't even know where to start, but I have found ways to play music (through certain classes others provide or the Java Sound API). Anybody ever done anything like this before? Any help is appreciated.
Of course it is. I think the term you should be Googling for is Java Signal Processing and analysis.
There is a related SO post on this as well as numerous other Java libraries and source examples (see the Google search results from above.) Here is a page with applets that perform a variety of signal analysis. Might not be exactly what you need but should be a start. And MARF, from the SO post mentioned above, looks VERY promising!

Categories