Coder Social home page Coder Social logo

chessclockswift's People

Contributors

allcontributors[bot] avatar codacy-badger avatar egorkolyshkin avatar gray-wind avatar joanb avatar jpauljm avatar karasilia avatar l-rettberg avatar shaahin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

chessclockswift's Issues

Update .gitignore and remove Pods/ directory

I think it would be nice to remove this large Pods/ directory from the repository.
If we do it, then we need to remove .xcworkspace file too. if so, then anyone who wants to clone this repo should then run pod install. Cocoapods will install all necessary pods and generate .xcworkspace.

Implement Resume button logic

When paused, give the chance to resume the clocks.
If the game was paused when whites were playing, it should be resumed as whites turn, and the same applies for blacks.

This button will be added without behavior in #9

Don't disable both clocks when paused

Currently, both clocks are disabled when pause button is clicked, but only one is clickable (the one who was ticking when the pause was pressed).
This is a UX problem that may confuse the user.

The current ticking clock should stay in active status (AKA no alpha applied) when pause button is pressed.

Render states instead of viewmodels

Instead of having a big viewmodel with all the parameters of the view, it would be nice to render States (this could be a enum) with the params needed for that state only.

Posible States (debatable):

  • WhitesRunning
  • BlacksRunning
  • Paused
  • Stopped

Use of RxCocoa in ViewController

Hi, just out of curiosity. Is there any particular reason why we use RxSwift but we're not using RxCocoa in the viewcontroller? :)

Show reset Button only when the game is paused

Expected behavior:
The Reset Button is initially hidden.
When the game is paused, the Pause button is hidden and two new buttons are shown:

  • Resume
  • Reset

Logic for these buttons will be addressed in other issues.

Make clocks clickable

The idea is to remove the top and bottom buttons (not only they are unnecessary, but the top player see the button upside down).
The click behaviour should be implemented by the clocks (click on one clock to change the turn)

Remove unnecessary Observable.merge in ClocksPresenter

The observable.merge is not merging any observables right now, so it can be removed from ClocksPresenter.
The interval observable is needed, it's enough to delete the Observable.merge line and its respective closing parenthesis

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.