A (probably) easy question about world generation.

Hey guys, I am very new to Unity. I have never finished a “working” script that has not been 50% recreated from a tutorial. So I am very new. But I want to learn.

My ultimate goals are… really big. So for now I decided to start with a more simple project. I am trying to create a 3d board game. In a sense like chess, or checkers or something, but for now I just need to create a map to play on. I am thinking a 10x10 cube map would be great, with a max height of 3 or 4. I really don’t care if it is randomly generated or not, I am more interested in learning how to make a map that you can move pieces around on.

I don’t want to get to complicated yet, so don’t give me any of those AI scripts or anything, because I can assure you I won’t understand one line of it. I just want to make a map with one piece you can click on a block to move it to or something.

P.S. can you guys please put those “//” things in the script for me to explain how the script works? I really want to LEARN the script, not leech other people’s intelligence. And also, I like java much better then c#, makes more sense to me, so please use that if you can. Thanks!

Bump. And also I have been thinking about this tell me if I am right.

I would need 2 scripts to run the game. Script 1 would set up the game layout (turn order etc) and script 2 would describe exactly what each part of layout does. For instance:

SCRIPT 1:

function generateMap () {
}

function playerTurn () {
}

function aiTurn () {
}

function Update () {
}
//this would check to see if anyone has won yet.

Now for script 2, I would have to get all those components or functions from script 1? And then How would I go about doing those functions? Player turn could simply be a transform.position to whatever block receives OnMouseDown. But I dont know how to do the rest…