Currently, we use browser alerts to tell the player if Game's Over by checkmate, or the game is drawn because of 3 fold repetition or 50 moves rule etc.
We want to switch to Modal based alerts in order to give a personalised alert to the user matching the theme of the website, We have already created a template model in js/model.js this can be used as a reference and new models for Victory, Loss or Draw can be created in a similar fashion.
Currently, we use browser alerts to tell the player if Game's Over by checkmate, or the game is drawn because of 3 fold repetition or 50 moves rule etc.
We want to switch to Modal based alerts in order to give a personalised alert to the user matching the theme of the website, We have already created a template model in
js/model.jsthis can be used as a reference and new models for Victory, Loss or Draw can be created in a similar fashion.