Giter VIP home page Giter VIP logo

davidalphafox / sanmill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from calcitem/sanmill

0.0 1.0 0.0 49.91 MB

Sanmill is an open-source, UCI-like Mill/Morris/Merrills/Mühle/Malom (and its variants) program with CUI, Flutter GUI and Qt GUI, sharing and freely distributing the code, tools and data needed to deliver this mill game. We do this because we are convinced that open software and open data are key ingredients to make rapid progress.

Home Page: https://play.google.com/apps/testing/com.calcitem.sanmill

License: GNU General Public License v3.0

QMake 0.18% C 0.88% C++ 63.47% Shell 0.73% Batchfile 0.03% Makefile 1.64% Java 0.69% Dart 30.97% CMake 1.25% Python 0.05% JavaScript 0.05% Swift 0.06%

sanmill's Introduction

Overview

YouTube

Get it on GitHub Get it on F-Droid Get it on Google Play Get it on CafeBazaar

Build Status Codacy Badge Translation status Readme-Chinese

Sanmill is a free, powerful UCI-like N men's morris program with CUI, Flutter GUI and Qt GUI.

Nine men's morris is a strategy board game for two players dating at least to the Roman Empire. The game is also known as nine-man morris, mill, mills, the mill game, merels, merrills, merelles, marelles, morelles, and ninepenny marl in English.

image

Files

This distribution of Sanmill consists of the following files:

  • Readme.md, the file you are currently reading.

  • Copying.txt, a text file containing the GNU General Public License version 3.

  • src, a subdirectory containing the full source code, including a Makefile that can be used to compile Sanmill CUI on Unix-like systems.

  • src/ui/flutter_app, a subdirectory containing a Flutter frontend.

  • src/ui/qt, a subdirectory containing a Qt frontend.

How to Build

CUI

Sanmill CUI has support for 32 or 64-bit CPUs, certain hardware instructions, big-endian machines such as Power PC, and other platforms.

It should be easy to compile Sanmill directly from the source code on Unix-like systems with the included Makefile in the folder src. Generally, it is recommended to run make help to see a list of make targets with corresponding descriptions.

cd src
make help
make build ARCH=x86-64-modern

When reporting an issue or a bug, please tell us which version and compiler you used to create your executable. This information can be found by typing the following commands in a console:

./sanmill compiler

Qt Application

If you have started using Ubuntu or any Ubuntu-based Linux distribution, you must install Qt by running the following command as root:

sudo apt-get install qt5-default qtmultimedia5-dev qtcreator

Use Qt Creator to open millgame.pro , or use Visual Studio to open millgame.sln to build Qt Application.

Flutter App

Run ./flutter-init.sh , copy src/ui/flutter_app/android/key.properties.example to src/ui/flutter_app/android/key.properties, modify it, and then use IntelliJ IDEA or Visual Studio Code to open src/ui/flutter_app to build Flutter App.

We use compile-time environment configs to enable specific parts of the code:

  • test to prepare the app for Monkey and Appium testing. (References to external sites are going to be disabled.)
  • dev_mode to show the developer mode without needing to enable it first.
  • catcher to control the use of Catcher. (This is on by default and needs to be disabled when required.)

All environment configs can be combined and take a value of bool like:

flutter run --dart-define catcher=false dev_mode=true

For ease of use, some launch configs for IntelliJ IDEA or Visual Studio Code are available. Just select the needed one in the Run and Debug or Run/Debug Configurations tab.

Understanding the code base and participating in the project

Sanmill's improvement over the last couple of years has been a great community effort. There are a few ways to help contribute to its growth.

Improving the code

If you want to help improve the code, there are several valuable resources:

  • In this wiki, many techniques used in Sanmill are explained with a lot of background information.

  • The latest source can always be found on GitHub.

  • Discussions about Sanmill take place in the Discussions.

Terms of use

Sanmill is free and distributed under the GNU General Public License version 3 (GPL v3). Essentially, this means you are free to do almost exactly what you want with the program, including distributing it among your friends, making it available for download from your website, selling it (either by itself or as part of some bigger software package), or using it as the starting point for a software project of your own.

The only real limitation is that whenever you distribute Sanmill in some way, you must always include the full source code or a pointer to where the source code can be found. If you make any changes to the source code, these changes must also be made available under the GPL.

For full details, read the copy of the GPL v3 found in the file named Copying.txt.

sanmill's People

Contributors

calcitem avatar cweiske avatar f3rr31 avatar leptopoda avatar nathanbnm avatar sguinetti avatar weblate avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.