Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Génération infinie #23

Open
Hazurl opened this issue Jul 15, 2017 · 0 comments
Open

Génération infinie #23

Hazurl opened this issue Jul 15, 2017 · 0 comments
Labels

Comments

@Hazurl
Copy link

Hazurl commented Jul 15, 2017

function getCells () {
	System.print("ok");
	var cells = <>
	for var x = -17; x <= 17; ++x {
		for var y = |x| - 17; y <=  17 - |x|; ++y {
			//System.print(Field.cell(x, y))
			//cells.insert(Field.cell(x, y))
		}
	}
	return cells
}

System.print(getCells())

Si je met la ligne cells.insert(Field.cell(x, y)), le combat ne se génère pas.
Second bug, si je lance la génération (avec la ligne qui bug), que je commente la ligne, le combat se génère avec cette nouvelle IA.
J'ai tester en insérant la ligne System.print("ok") et en commentant l'insertion dans le Set APRES avoir lancé le test de combat (qui ne se générait pas); la ligne s'affiche.

@5pilow 5pilow changed the title Generation infini Génération infinie Jul 15, 2017
@5pilow 5pilow added the bug label Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants