Teste02 sds escribo - A flutter application that simulates the Indian game "Snakes and Ladders"

Overview

Seleção de Desenvolvedor de Software - Escribo

Teste Técnico 02

Instruções para Uso:

Para a segunda tarefa, foi solicitado o desenvolvimento de uma aplicação que simulasse o jogo indiano “Cobras e Escadas".

Nas instruções enviadas no guia para o teste, foi solicitado que a aplicação rodasse em dispositivos Android. Levando em conta esta necessidade, aproveitei de uma das vantagens do Flutter e desenvolvi um Web App, hospedei o mesmo em um projeto no FireBase e dessa forma o resultado pode ser avaliado e testado em qualquer navegador, seja em dispositivos Android, seja em dispositivos IOS.

Samsung Galaxy S8+

image

Google Pixel 5

image

Iphone XR

image

O link para o Web App: https://sds-escribo-teste02.web.app/#/

Mas caso desejem instalar a aplicação em um dispositivo ou em um emulador Android, segue o link com o APK:

https://drive.google.com/file/d/1VmWTcCKuUgNYX5m1xPQQZ5xsT3fYos-Z/view?usp=sharing

Como eu citei acima, uma das maiores vantagens do Flutter é a possibilidade de "buildarmos" a mesma aplicação para diversos dispositivos, sem a necessidades de mudanças ou adições drásticas ao código.

Dentre outras exigências do guia para o teste, estava a criação de uma Classe "CobrasEscadas". A mesma pode ser encontrada no seguinte caminho:

lib/models/cobras_escadas.dart

Outra solicitação era exibir avatares que representam cada um dos dois jogadores.

image

image

Os jogadores são representados por cada uma das caixas, sendo que, na vez de determinado jogador, o ícone P1 ou P2 é exibido e a caixa tem uma elevação. Indicando dessa forma de quem é a respectiva vez.

Outra solicitação era que houvesse um "Botão Jogar":

image

Nesse caso o botão apresenta a cor de acordo com a vez de cada jogador, clicando no mesmo, ele gera os valores dos dados e apresenta as informações da última jogada, ex: Resultado da jogada, casas deslocadas, encontros com escadas ou cobras.

Por último, podemos acompanhar a evolução de cada jogador, indicado pelos ícone P1 e P2, no grid do App:

image

O Codigo foi refatorado de forma que a conferencia e avaliação fiquei mais pratica.

Toda a aplicação é composta somente pelos seguintes scripts:

lib/main.dart

lib/screens/home_screen/home_screen.dart

lib/models/cobras_escadas.dart

lib/models/player_model.dart

lib/widgets/dado_widget.dart

lib/widgets/dados_informacoes_widget.dart

lib/widgets/grid_widget.dart

lib/widgets/jogadoresInfo_widget.dart

lib/widgets/texto_jogador_widget.dart

You might also like...

Wordle-in-flutter - Wordle game for Android and IOS built with Flutter

Wordle-in-flutter - Wordle game for Android and IOS built with Flutter

wordle Wordle game for Android and IOS built with Flutter Screenshots

Nov 23, 2022

A flutter brain game built using only pure flutter animations.

A flutter brain game built using only pure flutter animations.

Flutter Brain Game 👏 👍 🔥 This project designed using figma and built using flutter. Demo URL https://khalid-alsaleh-dev.github.io/BrainGame/#/ 💻 R

Jun 17, 2022

A slide puzzle game created with flutter for the flutter hack

A slide puzzle game created with flutter for the flutter hack

Jungle puzzle A slide puzzle game created with flutter for the flutter hack https://flutter.dev/events/puzzle-hack Numeric Image Dark Mode How to run?

Oct 26, 2022

We created Flappy Bird, a straightforward game based on flutter animation, from scratch using only Dart & Flutter and no third-party games or animation components.

We created Flappy Bird, a straightforward game based on flutter animation, from scratch using only Dart & Flutter and no third-party games or animation components.

Flappy-Bird Description A ridiculous game created by Flutter, all you have to do is touch the screen to make the bird leap as long as you avoid the ba

Dec 25, 2022

Space Themed Turn-Based Strategy Game developed in Flutter

Space Themed Turn-Based Strategy Game developed in Flutter

Space Empires 🛸 Introduction 🚀 Space Empires A 4X Space themed Strategy Game made with Flutter Complete Rules and Instruction can be accessed from t

Dec 24, 2022

A basic demonstration for creating a Jardinains (Fancy Pong-Like) Game in Flutter

A basic demonstration for creating a Jardinains (Fancy Pong-Like) Game in Flutter

Jardinains Flutter! 🕹 Play Here - Web https://flutter-jardinains.web.app/#/ Demo Note: For optimal performance run the project in profile mode using

Nov 12, 2022

A simple pair game made with Flutter, a custom library, BLoC and tunnel pattern.

A simple pair game made with Flutter, a custom library, BLoC and tunnel pattern.

Pair game A simple pair game created with Flutter. Article on Medium here: https://medium.com/@frmineoapps/a-simple-pair-game-made-with-flutter-a-cust

Jun 28, 2022

Space Themed Turn-Based Strategy Game developed in Flutter

Space Themed Turn-Based Strategy Game developed in Flutter

Space Empires 🛸 Introduction 🚀 Space Empires A 4X Space themed Strategy Game made with Flutter Complete Rules and Instruction can be accessed from t

Nov 30, 2021

This is Math-Puzzle game made in flutter and available on Playstore & AppStore

This is Math-Puzzle game made in flutter and available on Playstore & AppStore

Math Matrix : Train Your Brain, Improve Math Skill Train Your Brain · Report Bug · Request Feature Math Matrix is a Math Game that tries improvise you

Dec 30, 2022
Owner
Pablo Henrique
Pablo Henrique
Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API [An open source rest api on indian Vedic Scripture Shrimad Bhagavad Gita].

Gita Bhagavad Gita flutter app. Download App - Playstore Web Application About Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight No

Ravi Kovind 7 Apr 5, 2022
App that simulates a flow of screens for the course of navigation and routes with nuvigator through Flutter

Rotas app App que simula um fluxo de telas para o curso de navegação e rotas com

Heliomar P. Marques 1 Dec 19, 2021
A Dart package which simulates pass by reference feature

Reference Wrapper is a Dart package which simulates pass by reference feature us

null 0 Dec 19, 2021
Tap Hero Game - An Open Source Flutter Game

Tap Hero ?? ?? TapHero is a casual tapping arcade game. This repo includes Android, iOS, Desktop (macOS, Windows, Linux). For Flutter Web, check the T

Mariano Zorrilla 159 Dec 19, 2022
Video game ui - Video Game App UI In Flutter!

video_game_ui A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Flutter Boy 11 Sep 6, 2022
Color matching game - A Crossplatform Color Matching Game made with Flutter

color_matching_game A Color Matching Game built with Flutter. It is a simple app made without adding a plug-in. Play by specifying the red, green and

Yusuke Ishimi 6 Nov 21, 2022
Rock-Paper-Scissor-Game-Using-Dart - This is a repository of Rock Paper Scissor Game which I developed while learning Dart.

Rock-Paper-Scissor-Game-Using-Dart This is a repository of Rock Paper Scissor Game which I developed while learning Dart. The main.dart file consist o

Nitin Varma 0 Jan 4, 2022
Destini flutter - A choose your own adventure game in flutter

destini_flutter A choose your own adventure game made with flutter. Getting Star

Joel Nickson 1 Jan 2, 2022