# 576055e9f1916f6d7396923ebc478ef89fd84a922b7b0a2ee731025f9346bccb Elan 1.6.2 guest default_profile valid

main
  variable head set to 0
  variable apple set to 0
  variable body set to new List<of Int>()
  if head is apple then
    call setAppleToRandomPosition(apple, body)
  else
    call body.removeAt(0)
  end if
end main

procedure setAppleToRandomPosition(x as Int, y as List<of Int>)

end procedure
