You can solve tic-tac-toe just by enumerating all the game states. There are a few corners you can cut, but not many.
Here is a nice graphical representation of how to do this. http://xkcd.com/832/
More Related Contents:
- Can this be made in Java? [closed]
- GUI not working after rewriting to MVC
- How to best position Swing GUIs?
- Creating a custom button in Java with JButton
- Multiple row selection in JTable
- Simple popup java form with at least two fields
- How to wire one pane to another
- How do you add an ActionListener onto a JButton in Java
- Correctly implementing the MVC pattern in GUI development using Swing in Java
- JTable model listener detects inserted rows too soon (before they are drawn)
- How to setSize of image using RescaleOp
- Minesweeper Action Events
- SwingWorker, Thread.sleep(), or javax.swing.timer? I need to “insert a pause”
- Java Swing: How can I implement a login screen before showing a JFrame?
- paintComponent() vs paint() and JPanel vs Canvas in a paintbrush-type GUI
- How to set AUTO-SCROLLING of JTextArea in Java GUI?
- Refreshing GUI by another thread in java (swing)
- set and disable icons of JToggleButton
- Sending messages between two JPanel objects
- How to implement draggable tab using Java Swing?
- make a JLabel wrap it’s text by setting a max width
- JTable Right Align Header
- How to effectively use cardlayout in java in order to switch from panel using buttons inside various panel constructors
- How to combine event listeners with “asking” for an event?
- JavaFx tableview sort is really slow how to improve sort speed as in java swing
- Java Swing GUI Client and Server Chat App TextArea not updating
- How can I set size of a button?
- What font in Swing looks the same in all OS?
- MouseListener Help Java
- Can I add a component to a specific grid cell when a GridLayout is used?