>>> import castell >>> lhabs = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] >>> lportes = [(0, 12), (0, 4), (0, 13), (1, 3), (1, 13), (3, 13), (4, 13), (7, 14)] >>> c = castell.habitacions(lhabs, lportes) >>> p, q = castell.hi_puc_anar(c, 0, 1) >>> p True >>> q 2 >>> p, q = castell.hi_puc_anar(c, 0, 2) >>> p False >>> q 0 >>> p, q = castell.hi_puc_anar(c, 1, 13) >>> p True >>> q 1 >>> p, q = castell.hi_puc_anar(c, 7, 14) >>> p True >>> q 1 >>> p, q = castell.hi_puc_anar(c, 8, 0) >>> p False >>> q 0 >>> p, q = castell.hi_puc_anar(c, 12, 0) >>> p True >>> q 1 >>> p, q = castell.hi_puc_anar(c, 12, 1) >>> p True >>> q 3