This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reveal neightbours with recursion | |
public void findNeighbors(int row, int col) { | |
if ((row >= 0 && row <= BOARD_SIZE - 1) && (col >= 0 && col <= BOARD_SIZE - 1)) { //Check if row and col is not out of board | |
if ((cell[row][col].getState() != ButtonState.OPEN) && (((Integer) (cell[row][col].getTag())) != -1) | |
&& (cell[row][col].getState() != ButtonState.FLAG) && (cell[row][col].getState() != ButtonState.INTERROGANT) | |
&& (((Integer) (cell[row][col].getTag())) == 0)) { | |
cell[row][col].setBackgroundResource(R.drawable.boton_opened); | |
cell[row][col].setState(ButtonState.OPEN); | |
findNeighbors(row - 1, col); | |
findNeighbors(row - 1, col - 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'form_div_layout.html.twig' %} | |
{% block form_row -%} | |
<div class="row{% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}"> | |
<div class="input-field col s12"> | |
{{- form_widget(form) -}} | |
{{- form_label(form) -}} | |
{{- form_errors(form) -}} | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php | |
pecl version | |
# | |
# Install mcrypt extension | |
# see http://pecl.php.net/package-info.php?package=mcrypt&version=1.0.1 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Privacy Policy | |
Retrosoft ("developer") built the Dashy Ball! app as an Ad Supported app. This SERVICE | |
("app") is provided by at no cost and is intended for use as is. | |
This privacy policy is used to inform you regarding policies with the collection, use, and | |
disclosure of Personal Information if anyone decided to use this Service. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace CuatroOchenta\BackOfficeBundle\Form; | |
use Symfony\Component\Form\FormConfigInterface; | |
use Symfony\Component\Form\FormInterface; | |
class FormOptionReplacer | |
{ | |
/** |