From 185a95bd31cf02ac7e55fcac39b6db7acd94cb2d Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Fri, 13 Feb 2015 19:11:44 +0100 Subject: [PATCH] TP3 cree_plateau --- S2/TP3/bataille_navale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/S2/TP3/bataille_navale.py b/S2/TP3/bataille_navale.py index 5eccf3f..7354f8a 100644 --- a/S2/TP3/bataille_navale.py +++ b/S2/TP3/bataille_navale.py @@ -194,6 +194,9 @@ def cree_plateau(l, h, l_nav): CU : les dimensions doivent permettre le placement de tous les navires """ + esp = {'larg': l, 'haut': h} + for nav in l_nav: + placer(esp, nav) def cases_du_navire(nav, pos, disp): """