Java Tic Tac Toe Board Program: 2D Array: Tutorial

Java

Video is ready, Click Here to View ×


We show how to implement a Tic Tac Toe board using a class and a 2-dimensional array, along with an enum.

I talk about Java enums in this video: http://www.youtube.com/watch?v=SP5hRQgv2Gw&list=PLF03C6B2C0B292A1E&index=16

13 thoughts on “Java Tic Tac Toe Board Program: 2D Array: Tutorial

  1. That's the Java for-each loop syntax.

    If you have an array of ints called 'a' then you can go over each element in the array with the for-loop: for (int i : a){…}

    In the video, we are visiting each row in the board.

Leave a Reply

Your email address will not be published. Required fields are marked *