# HG changeset patch # User Azamat S. Kalimoulline # Date 1308467645 -14400 # Node ID 7ff8ba5fb4cf74321c24e87969bea87c98054451 # Parent 0e21db22ecec8ab447e67d7b6e7c0ec9638dc519 Player slots. diff -r 0e21db22ecec -r 7ff8ba5fb4cf src/main/java/ru/alphatech/icfpc/game/Player.java --- a/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 10:50:46 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/game/Player.java Sun Jun 19 11:14:05 2011 +0400 @@ -1,13 +1,25 @@ package ru.alphatech.icfpc.game; +import ru.alphatech.icfpc.cards.I; import ru.alphatech.icfpc.cards.ICard; public class Player { + private Slot[] slots = new Slot[256]; + + public Player() + { + for(int i = 0; i < 255; i++) + { + slots[i].setVitality(10000); + slots[i].putValue(new I()); + } + } + public Slot getSlot(int i) { - throw new RuntimeException("Not impilemented yet."); + return slots[i]; } public void applyCardToSlot(ICard card, Slot slot){