GithubHelp home page GithubHelp logo

yamin8000 / dooz Goto Github PK

View Code? Open in Web Editor NEW
80.0 3.0 6.0 1.58 MB

Dooz or Tic-tac-toe is a simple pen-and-paper game. I created this implementation using Kotlin and Jetpack Compose for Android devices.

License: GNU General Public License v3.0

Kotlin 100.00%
android compose game jetpack-compose kotlin tic-tac-toe xogame dynamic-color material3 xo-game material-you material-you-3 f-droid fdroid free libre foss

dooz's Introduction

Get it on F-Droid

Dooz/Tic-Tac-Tao

Android CI

Dooz or Tic-tac-toe is a simple pen-and-paper game. I created this implementation using Kotlin and Jetpack Compose for Android Devices.

Get it on F-Droid

Preview

preview

video_2024-01-05_17-55-34.mp4

Compatibility

SDK21+ or Android 5.0+

Usage

Just play it!

Download

Features

Technical

  • Jetpack Compose
  • Material3 and Dynamic Color

Game

  • Variable game board grid size from three-by-three to seven-by-seven (Larger than seven-by-seven is simply ridiculous and unplayable on mobile phones)
  • Variable game AI difficulty (easy, medium, hard)

Variations

Simple Game

The Simple game is the simplest variation of Tic-tac-toe with a three-by-three grid with two players. The player who succeeds in placing three of their marks horizontally, vertically, or diagonally is the winner.

preview

Simple Game AI

Currently, in hard mode, AI uses a strategy rather than an AI search algorithm like MinMax. This strategy consists of these steps: Win, Block, Fork, Block Fork, Center Play, Corner Play, and Side Play.

Strategy's source: Flexible Strategy Use in Young Children's Tic-Tac-Toe by Kevin Crowley, Robert S. Siegler

More info on the strategy here

On Easy difficulty, the AI plays a random empty cell in the grid. In Medium difficulty, AI chooses between Easy and Hard Difficult for each move based on a 50/50 chance.

Changelog

License

Owl is licensed under the GNU General Public License v3.0
Permissions of this strong copyleft license are conditioned on making
available complete source code of licensed works and modifications,
which include larger works using a licensed work, under the same
license. Copyright and license notices must be preserved. Contributors
provide an express grant of patent rights.

dooz's People

Contributors

dependabot[bot] avatar licaon-kter avatar renovate-bot avatar renovate[bot] avatar weblate avatar yamin8000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dooz's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/android.yml
  • actions/checkout v4
  • actions/setup-java v4
  • actions/cache v4
.github/workflows/dependency-submission.yml
  • actions/checkout v4
  • actions/setup-java v4
  • gradle/actions v3
gradle
gradle.properties
settings.gradle.kts
build.gradle.kts
  • com.android.application 8.4.0
  • com.android.library 8.4.0
  • org.jetbrains.kotlin.android 1.9.23
app/build.gradle.kts
  • composeOptions 1.5.12
  • androidx.core:core-ktx 1.13.0
  • androidx.compose.ui:ui-tooling 1.6.6
  • androidx.compose.ui:ui 1.6.6
  • androidx.compose.ui:ui-tooling-preview 1.6.6
  • androidx.activity:activity-compose 1.9.0
  • androidx.compose.material:material 1.6.6
  • androidx.compose.material:material-icons-extended 1.6.6
  • androidx.compose.material3:material3 1.2.1
  • androidx.compose.material3:material3-window-size-class 1.2.1
  • androidx.navigation:navigation-compose 2.7.7
  • androidx.datastore:datastore-preferences 1.1.0
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.7

  • Check this box to trigger a request for Renovate to run again on this repository

The function DoozItem(shape: Shape, clickable: Boolean, itemSize: Dp, doozCellOwner: Player?, itemBackgroundColor: Color, itemContentColor: Color, onClick: () -> Unit) has too many parameters. The current threshold is set to 6.

Codacy detected an issue:

Message: The function DoozItem(shape: Shape, clickable: Boolean, itemSize: Dp, doozCellOwner: Player?, itemBackgroundColor: Color, itemContentColor: Color, onClick: () -> Unit) has too many parameters. The current threshold is set to 6.

Currently on:

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.