[20172301郭愷第七天的進展]android
ConstraintLayout
,而後和組內的段志軒同窗進行討論,都改爲了線性佈局LinearLayout
。[20172304段志軒第七天的進展]sql
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
[20172328李馨雨第七天的進展]數據庫
[20172329王文彬第七天的進展]數組
private void Dir(int dir){ switch (dir){ case 0:{ nextPerson(); } case 1:{ lastPerson(); } } } private void nextPerson() { switch (currentPerson) { case 0: currentPerson = 2; break; case 1: currentPerson = 0; break; case 2: currentPerson = 1; break; } timeLimite = 310; } private void lastPerson(){ switch (currentPerson) { case 0: currentPerson = 1; break; case 1: currentPerson = 2; break; case 2: currentPerson = 0; break; } timeLimite = 310; }
public Card chupaiAI(Card a) { int[] pokeWanted=null; if (a==null){ pokeWanted=Poke.outCardByItsself(pokes,last,next); } else { pokeWanted=Poke.findTheRightCard(a,pokes,last,next); } if (pokeWanted==null){ return null; } int num = 0; for (int i = 0; i < pokeWanted.length; i++) { for (int j = 0; j < pokes.length; j++) { if (pokes[j] == pokeWanted[i]) { pokes[j] = -1; num++; break; } int[] newpokes = new int[0]; if (pokes.length - pokeWanted.length > 0) { newpokes = new int[pokes.length - pokeWanted.length]; } } } int j = 0; for (int i = 0; i < pokes.length; i++) { if (pokes[i] != -1) { newpokes[j] = pokes[i]; j++; } } this.pokes = newpokes; Card thiscard = new Card(pokeWanted, pokeImage, id); Desk.currentCard = thiscard; this.card = thiscard; return thiscard; }
public Uno finduno(int poke,Card card){ Uno result =null; if (poke==0){ Uno uno0 =new Uno("Red",0,"null"); uno0.setPoke(0); card.setPokeType(0); result=uno0; } if (poke==1){ Uno uno1 =new Uno("Red",1,"null"); uno1.setPoke(1); card.setPokeType(1); result=uno1; } if (poke==2){ Uno uno2 =new Uno("Red",2,"null"); uno2 .setPoke(2); card.setPokeType(2); result=uno2; } if (poke==3){ Uno uno3 =new Uno("Red",3,"null"); uno3 .setPoke(3); card.setPokeType(3); result=uno3; } if (poke==4){ Uno uno4 =new Uno("Red",4,"null"); uno4 .setPoke(4); card.setPokeType(4); result=uno4; } if (poke==5){ Uno uno5 =new Uno("Red",5,"null"); uno5 .setPoke(5); card.setPokeType(5); result=uno5; } if (poke==6){ Uno uno6 =new Uno("Red",6,"null"); uno6 .setPoke(6); card.setPokeType(6); result=uno6; } if (poke==7){ Uno uno7 =new Uno("Red",7,"null"); uno7 .setPoke(7); card.setPokeType(7); result=uno7; } if (poke==8){ Uno uno8 =new Uno("Red",8,"null"); uno8 .setPoke(8); card.setPokeType(8); result=uno8; } if (poke==9){ Uno uno9 =new Uno("Red",9,"null"); uno9 .setPoke(9); card.setPokeType(9); result=uno9; }
[20172330李楠第七天的進展]ide
小夥伴 | 郭愷 | 段志軒 | 李馨雨 | 王文彬 | 李楠 |
---|---|---|---|---|---|
貢獻量 | 6 | 6 | 3 | 6 | 4 |