#HalachaYomi OC 405:7 On boat on Shabat: if boat is moving can walk across all of it; if not moving can only walk 4 Amot in any direction.