mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-22 07:55:19 +02:00
removed logging in procedural generation function
This commit is contained in:
parent
ff60dc6a45
commit
6de37f2ebf
2 changed files with 3 additions and 3 deletions
|
@ -441,7 +441,7 @@ export function proceduralGeneration(m = 20,
|
||||||
newZ >= 0 && newZ + newDepth <= p &&
|
newZ >= 0 && newZ + newDepth <= p &&
|
||||||
isSpaceValid(newX, newY, newZ, newLength, newWidth, newDepth)
|
isSpaceValid(newX, newY, newZ, newLength, newWidth, newDepth)
|
||||||
) {
|
) {
|
||||||
console.log(`Placing room at (${newX}, ${newY}, ${newZ}) with dimensions (${newLength}x${newWidth}x${newDepth})`);
|
// console.log(`Placing room at (${newX}, ${newY}, ${newZ}) with dimensions (${newLength}x${newWidth}x${newDepth})`);
|
||||||
for (let di = 0; di < newDepth; di++) {
|
for (let di = 0; di < newDepth; di++) {
|
||||||
for (let dj = 0; dj < newLength; dj++) {
|
for (let dj = 0; dj < newLength; dj++) {
|
||||||
for (let dk = 0; dk < newWidth; dk++) {
|
for (let dk = 0; dk < newWidth; dk++) {
|
||||||
|
|
|
@ -148,8 +148,8 @@ function generateConstructionTasks(variants) {
|
||||||
//Main: writes the generated tasks to a file.
|
//Main: writes the generated tasks to a file.
|
||||||
|
|
||||||
// VARIABLES TO CHANGE HERE
|
// VARIABLES TO CHANGE HERE
|
||||||
const variants = 1
|
const variants = 5
|
||||||
const file = './test_multiagent_construction_tasks.json'
|
const file = './train_multiagent_construction_tasks.json'
|
||||||
|
|
||||||
const tasks = generateConstructionTasks(variants);
|
const tasks = generateConstructionTasks(variants);
|
||||||
// Clear existing file content
|
// Clear existing file content
|
||||||
|
|
Loading…
Add table
Reference in a new issue