Commit 7a981414 authored by hosein's avatar hosein

police -> move deleted

parent 7eb920d2
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Police.iml" filepath="$PROJECT_DIR$/Police.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="884d8401-2fdc-44ff-ba6e-d91dd7afdada" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/src/mma/Main.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/mma/PlayGround.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/mma/Police.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/mma/Thief.java" beforeDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pack/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="135">
<caret line="32" column="54" lean-forward="true" selection-start-line="32" selection-start-column="54" selection-end-line="32" selection-end-column="54" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pack/PlayGround.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="91" column="124" selection-start-line="91" selection-start-column="124" selection-end-line="91" selection-end-column="124" />
<folding>
<element signature="method#PlayGround#0;class#PlayGround#0" />
<element signature="method#show#0;class#PlayGround#0" />
<element signature="method#putRandom#0;class#PlayGround#0" />
<element signature="method#change#0;class#PlayGround#0" />
<element signature="method#canPoliceSeeThief#0;class#PlayGround#0" />
<element signature="method#catchThief#0;class#PlayGround#0" />
<element signature="e#4961#4962#0" expanded="true" />
<element signature="method#getNM#0;class#PlayGround#0" />
<element signature="method#getNM#1;class#PlayGround#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/pack/Police.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="342">
<caret line="216" column="82" selection-start-line="216" selection-start-column="82" selection-end-line="216" selection-end-column="82" />
<folding>
<element signature="method#Police#0;class#Police#0" />
<element signature="e#736#2642#1" />
<element signature="method#targetedMove#0;class#Police#0" />
<element signature="e#2945#3296#1" />
<element signature="e#4028#4272#1" />
<element signature="method#targetedMove2#0;class#Police#0" />
<element signature="e#4505#5694#0" />
<element signature="method#confirmTargetMove#0;class#Police#0" />
<element signature="e#6615#6664#1" />
<element signature="e#6791#7589#1" />
<element signature="e#7770#7951#1" />
<element signature="e#7957#8828#1" />
<element signature="e#8944#9125#1" />
<element signature="e#9131#10002#1" />
<element signature="e#10089#10270#1" />
<element signature="e#10276#11147#1" />
<element signature="e#11224#11405#1" />
<element signature="e#11411#12282#1" />
<element signature="e#12384#12565#1" />
<element signature="e#13532#13713#1" />
<element signature="e#13719#14590#1" />
<element signature="e#14691#14872#1" />
<element signature="e#14878#15749#1" />
<element signature="method#getSituation#0;class#Police#0" />
<element signature="e#4220#4245#1" />
<element signature="e#16646#16647#0" expanded="true" />
<element signature="e#4269#4294#1" />
<element signature="e#16695#16696#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pack/Thief.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="238">
<caret line="14" selection-start-line="14" selection-end-line="14" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>Return[0][0]</find>
<find>// y</find>
<find>thiefSituation[0][0]</find>
<find>);</find>
<find>thiefsituation</find>
<find>confim</find>
</findStrings>
<replaceStrings>
<replace>Y</replace>
<replace />
<replace>x</replace>
<replace>y</replace>
<replace>X</replace>
<replace>,playGround);</replace>
<replace>thiefSituation</replace>
<replace>confirm</replace>
</replaceStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/src/DozdVaPolice.java" />
<option value="$PROJECT_DIR$/src/Thief.java" />
<option value="$PROJECT_DIR$/src/PlayGround.java" />
<option value="$PROJECT_DIR$/src/Police.java" />
<option value="$PROJECT_DIR$/src/Main.java" />
<option value="$PROJECT_DIR$/src/mma/PlayGround.java" />
<option value="$PROJECT_DIR$/src/mma/Main.java" />
<option value="$PROJECT_DIR$/src/mma/Police.java" />
<option value="$PROJECT_DIR$/../a.java" />
<option value="$PROJECT_DIR$/../Main2.java" />
<option value="$PROJECT_DIR$/src/pack/Main.java" />
<option value="$PROJECT_DIR$/src/pack/PlayGround.java" />
<option value="$PROJECT_DIR$/src/pack/Police.java" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="-8" />
<option name="width" value="1822" />
<option name="height" value="1056" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="Police" type="b2602c69:ProjectViewProjectNode" />
<item name="Police" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Police" type="b2602c69:ProjectViewProjectNode" />
<item name="Police" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Police" type="b2602c69:ProjectViewProjectNode" />
<item name="Police" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="pack" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1555686401329" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="restartRequiresConfirmation" value="false" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Application.Main">
<configuration name="Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="pack.Main" />
<module name="Police" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="pack.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="Main2" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Main2" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<recent_temporary>
<list>
<item itemvalue="Application.Main" />
<item itemvalue="Application.Main2" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="884d8401-2fdc-44ff-ba6e-d91dd7afdada" name="Default Changelist" comment="" />
<created>1555330411954</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1555330411954</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="0" width="1822" height="1056" extended-state="0" />
<editor active="true" />
<layout>
<window_info content_ui="combo" id="Project" order="0" weight="0.098614074" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
<window_info id="UI Designer" order="4" />
<window_info id="Capture Tool" order="5" />
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Messages" weight="0.32575756" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32034633" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.39935064" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Terminal" order="7" />
<window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="9" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="right" id="Maven" order="4" />
<window_info anchor="right" id="Theme Preview" order="5" />
<window_info anchor="right" id="Capture Analysis" order="6" />
<window_info anchor="right" id="Palette&#9;" order="7" />
</layout>
<layout-to-restore>
<window_info content_ui="combo" id="Project" order="0" weight="0.098614074" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
<window_info id="UI Designer" order="4" />
<window_info id="Capture Tool" order="5" />
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Messages" order="0" weight="0.32900432" />
<window_info anchor="bottom" id="Message" order="1" />
<window_info anchor="bottom" id="Find" order="2" />
<window_info active="true" anchor="bottom" id="Run" order="3" visible="true" weight="0.30627707" />
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="7" />
<window_info anchor="bottom" id="Terminal" order="8" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="10" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="right" id="Maven" order="4" />
<window_info anchor="right" id="Theme Preview" order="5" />
<window_info anchor="right" id="Capture Analysis" order="6" />
<window_info anchor="right" id="Palette&#9;" order="7" />
</layout-to-restore>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/DozdVaPolice.java" />
<entry file="file://$PROJECT_DIR$/src/mma/Main.java" />
<entry file="file://$PROJECT_DIR$/src/mma/PlayGround.java" />
<entry file="file://$PROJECT_DIR$/src/mma/Thief.java" />
<entry file="file://$PROJECT_DIR$/src/mma/Police.java" />
<entry file="file://$PROJECT_DIR$/src/pack/Thief.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="238">
<caret line="14" selection-start-line="14" selection-end-line="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../a.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="119">
<caret line="7" lean-forward="true" selection-end-line="12" selection-end-column="1" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Main2.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="119">
<caret line="7" column="3" lean-forward="true" selection-start-line="7" selection-start-column="3" selection-end-line="7" selection-end-column="3" />
<folding>
<element signature="e#0#338#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pack/PlayGround.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="91" column="124" selection-start-line="91" selection-start-column="124" selection-end-line="91" selection-end-column="124" />
<folding>
<element signature="method#PlayGround#0;class#PlayGround#0" />
<element signature="method#show#0;class#PlayGround#0" />
<element signature="method#putRandom#0;class#PlayGround#0" />
<element signature="method#change#0;class#PlayGround#0" />
<element signature="method#canPoliceSeeThief#0;class#PlayGround#0" />
<element signature="method#catchThief#0;class#PlayGround#0" />
<element signature="e#4961#4962#0" expanded="true" />
<element signature="method#getNM#0;class#PlayGround#0" />
<element signature="method#getNM#1;class#PlayGround#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pack/Main.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="135">
<caret line="32" column="54" lean-forward="true" selection-start-line="32" selection-start-column="54" selection-end-line="32" selection-end-column="54" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pack/Police.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="342">
<caret line="216" column="82" selection-start-line="216" selection-start-column="82" selection-end-line="216" selection-end-column="82" />
<folding>
<element signature="method#Police#0;class#Police#0" />
<element signature="e#736#2642#1" />
<element signature="method#targetedMove#0;class#Police#0" />
<element signature="e#2945#3296#1" />
<element signature="e#4028#4272#1" />
<element signature="method#targetedMove2#0;class#Police#0" />
<element signature="e#4505#5694#0" />
<element signature="method#confirmTargetMove#0;class#Police#0" />
<element signature="e#6615#6664#1" />
<element signature="e#6791#7589#1" />
<element signature="e#7770#7951#1" />
<element signature="e#7957#8828#1" />
<element signature="e#8944#9125#1" />
<element signature="e#9131#10002#1" />
<element signature="e#10089#10270#1" />
<element signature="e#10276#11147#1" />
<element signature="e#11224#11405#1" />
<element signature="e#11411#12282#1" />
<element signature="e#12384#12565#1" />
<element signature="e#13532#13713#1" />
<element signature="e#13719#14590#1" />
<element signature="e#14691#14872#1" />
<element signature="e#14878#15749#1" />
<element signature="method#getSituation#0;class#Police#0" />
<element signature="e#4220#4245#1" />
<element signature="e#16646#16647#0" expanded="true" />
<element signature="e#4269#4294#1" />
<element signature="e#16695#16696#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
package mma;//package src;
import mma.PlayGround;
import mma.Police;
import mma.Thief;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
System.out.print("Enter n: ");
int n = input.nextInt();
System.out.print("Enter m: ");
int m = input.nextInt();
System.out.print("Enter police numbers: ");
int pn = input.nextInt();
PlayGround playGround = new PlayGround(n, m, pn);
int[][] positions = playGround.putRandom();
Thief thief = new Thief(positions[pn][0], positions[pn][1]);
Police[] polices = new Police[pn];
for (n = 0; n < pn; n++)
polices[n] = new Police(positions[n][0], positions[n][1]);
//--------------------------------------------------------------------------------
do {
playGround.policeSeeThief();
} while(!playGround.catchThief());
}
}
package mma;
import java.util.Random;
public class PlayGround {
private int[][] ground, thiefsituation;
int n, m, policeNumbers;
PlayGround(int n, int m, int policeNumbers) {
this.n = n;
this.m = m;
this.policeNumbers = policeNumbers;
ground = new int[n][m];
thiefsituation = new int[1][1];
int i, j;
for (i = 0; i < n; i++)
for (j = 0; j < m; j++)
ground[i][j] = 0;
}
public void show() {
int i, j;
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
if (ground[i][j] == 0)
System.out.print("-");
else if (ground[i][j] == 1) // police
System.out.print("X");
else // Dozd
System.out.print("*");
}
System.out.println("");
}
}
public int[][] putRandom() {
int[][] positions = new int[policeNumbers + 1][2];
int i, j, k;
Random rand = new Random();
if (n * m < policeNumbers) System.out.println("Error!! NOT ENOUGH SPACE FOR POLICES AND THIEF IN GROUND");
else {
for (k = 0; k < policeNumbers; k++) { // police
i = rand.nextInt();
j = rand.nextInt();
if (ground[i][j] == 0) {
ground[i][j] = 1;
positions[k][0] = i; // x
positions[k][1] = j; // y
} else k--;
}
for (k = 0; k < 1; k++) { // thief
i = rand.nextInt();
j = rand.nextInt();
if (ground[i][j] == 0) {
ground[i][j] = 1;
positions[policeNumbers][0] = i; // x
positions[policeNumbers][1] = j; // y
thiefsituation[0][0] = i; // x
thiefsituation[0][1] = j; // y
}
}
}
return positions;
}
public void change(int[][] newPolicesSituation, int xThief, int yThief) {
int i, j;
for (i = 0; i < n; i++)
for (j = 0; j < m; j++)
ground[i][j] = 0;
for (i = 0; i < policeNumbers; i++)
ground[newPolicesSituation[i][0]][newPolicesSituation[i][1]] = 1;
ground[xThief][yThief] = -1;
}
public int[][] getGround() {
return ground;
}
public boolean policeSeeThief() {
int i, j, I, J;
if (thiefsituation[0][0] > 1) i = thiefsituation[0][0] - 2;
else i = 0;
if (thiefsituation[0][0] < n - 2) I = thiefsituation[0][0] + 3;
else I = n;
if (thiefsituation[0][1] > 1) j = thiefsituation[0][1] - 2;
else j = 0;
if (thiefsituation[0][1] < m - 2) J = thiefsituation[0][1] + 3;
else J = m;
for (; i < I; i++)
for (; j < J; j++)
if (ground[i][j] == -1)
return true;
return false;
}
public boolean catchThief() {
int i, j;
for (i = 0; i < n; i++)
for (j = 0; j < m; j++)
if (ground[i][j] == 100)
return true;
return false;
}
}
package mma;
import java.util.Random;
public class Police {
private int x, y;
private static boolean see;
Police(int x, int y) {
this.x = x;
this.y = y;
see = false;
}
public int[][] move(int n, int m) {
boolean i, j, I, J;
i = j = I = J = false;
if (x != 0) i = true;
if (x != n - 1) I = true;
if (y != 0) j = true;
if (y != m - 1) J = true;
Random random = new Random();
int[][] Return = new int[1][1];
while (true) {
switch (random.nextInt() % 8) {
case 0:
if (i == true && j == true) {
Return[0][0] = x - 1; // x
Return[0][1] = y - 1; // y
return Return;
}
break;
case 1:
if (i == true) {
Return[0][0] = x - 1; // x
Return[0][1] = y; // y
return Return;
}
break;
case 2:
if (i == true && J == true) {
Return[0][0] = x + 1; // x
Return[0][1] = y - 1; // y
return Return;
}
break;
case 3:
if (i == true) {
Return[0][0] = x; // x
Return[0][1] = y - 1; // y
return Return;
}
break;
case 4:
if (J == true) {
Return[0][0] = x; // x
Return[0][1] = y + 1; // y
return Return;
}
break;
case 5:
if (i == true && J == true) {
Return[0][0] = x + 1; // x
Return[0][1] = y - 1; // y
return Return;
}
break;
case 6:
if (J == true) {
Return[0][0] = x + 1; // x
Return[0][1] = y; // y
return Return;
}
break;
case 7:
if (I == true && J == true) {
Return[0][0] = x + 1; // x
Return[0][1] = y + 1; // y
return Return;
}
}
}
}
public int[][] getSituation() {
int[][] Return = new int[1][1];
Return[0][0] = x;
Return[0][1] = y;
return Return;
}
}
\ No newline at end of file
public class Thief {
private int x, y;
private boolean see;
Thief(int x, int y) {
this.x = x;
this.y = y;
see = false;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment