Commit 08bf3632 authored by Michael Schröder's avatar Michael Schröder

added Copyright

parent c707ea9e
Android app scoreboard for tournament dart x01
Android app scoreboard for dart X01 and cricket
* scores x01 or cricket
* one, two or three player
* 301, 501, etc.
* dart calculator
......
......@@ -7,8 +7,8 @@ android {
applicationId "x653.bullseye"
minSdkVersion 16
targetSdkVersion 28
versionCode 4
versionName "0.4"
versionCode 5
versionName "0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.util.Log;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.view.View;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.app.AlertDialog;
import android.content.DialogInterface;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.app.AlertDialog;
import android.content.DialogInterface;
......
......@@ -501,9 +501,10 @@ public class ControllerX01 implements DialogInterface.OnClickListener, Controlle
}
private void drawAllScores(){
for (int i=0;i<3;i++){
for (int i=0;i<player;i++){
drawScore(i);
}
if (player==1) x01View.drawScores(1,new SpannableString(scores[0].getAveragesPlus()));
}
private void drawScore(int i){
x01View.drawCards(i,new SpannableString(checkout(i)));
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import java.util.ArrayList;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.content.res.Resources;
import android.support.v7.app.AppCompatActivity;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class Dart {
private final Factor factor;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class Darts {
private final Dart[] darts;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
enum Factor {
SINGLE, DOUBLE, TRIPLE;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class Hits {
private final int[] hits;
......
package x653.bullseye; /**
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import java.util.ArrayList;
......
package x653.bullseye;
/**
Bullseye is a scoreboard for darts.
Copyright (C) 2017 Michael Schröder (mi.schroeder@gmx.de)
This programm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import android.support.v7.app.AppCompatActivity;
import android.text.SpannableString;
......@@ -103,7 +121,6 @@ class X01View {
public void drawScores(int i, SpannableString s){
scores[i].setText(s, TextView.BufferType.SPANNABLE);
//if (getPlayer()==1) scores[1].setText(d.getPlayer(0).getAveragesPlus());
}
public void drawCards(int i,SpannableString s){
......
......@@ -10,7 +10,7 @@
<string name="about_mail">Email</string>
<string name="about_license">License</string>
<string name="source_link">https://gitlab.com/x653/bullseye</string>
<string name="team_email">mi.schroeder@gmx.de</string>
<string name="team_email">mi.schroeder@netcologne.de</string>
<string name="license_gplv3_later">GNU General Public License Version 3</string>
<string name="about_artwork">Artwork</string>
<string name="cc_dart">\"dart board\" by Tim Geers / CC-BY</string>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment