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
/// <summary> | |
/// Начало игры | |
/// </summary> | |
public void StartSteps() | |
{ | |
_isRun = true; | |
// Поток модели (для запуска в отдельном от вью потоке) | |
// Стоит вынести в метод | |
_modelThread = new Thread(new ThreadStart(delegate | |
{ |
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
@WebFilter(filterName = "/LoginFilter", urlPatterns = "/Controller") | |
public class LogInFilter implements javax.servlet.Filter { | |
public LogInFilter() { | |
} | |
public void destroy() { | |
} | |
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) | |
throws IOException, ServletException { | |
String action = request.getParameter("command"); |
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
function program(robot) { | |
var scanner = robot.getScanner(); | |
var mem = robot.getMemory(); | |
var dest = scanner.getGold(); | |
if (dest.length === 0 || scanner.getLaserMachines().length > 0 || dest.length > 6) { | |
dest = scanner.getExit(); | |
} | |
var finish = scanner.getShortestWay(dest[0]); | |
if (!mem.has("gol")) { | |
mem.save("gol", finish); |
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
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | |
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff: | |
.idea/**/workspace.xml | |
.idea/**/tasks.xml | |
.idea/dictionaries | |
# Sensitive or high-churn files: | |
.idea/**/dataSources/ |
NewerOlder