@@ -15,7 +15,6 @@
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
<option name="REVERSE_PATCH" value="false" />
</component>
<component name="DaemonCodeAnalyzer">
<disable_hints />
@@ -64,7 +63,52 @@
<file leaf-file-name="FizzBuzz.scala" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/other/FizzBuzz.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="22" column="1" selection-start="410" selection-end="410" vertical-scroll-proportion="0.4353562">
<state line="17" column="6" selection-start="390" selection-end="390" vertical-scroll-proportion="0.33464566">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Problem9.scala" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem9.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="9" column="7" selection-start="139" selection-end="139" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Problem10.scala" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem10.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="11" column="7" selection-start="159" selection-end="159" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Problem13.scala" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem13.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="11" column="7" selection-start="154" selection-end="154" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Problem67.scala" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem67.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="9" column="7" selection-start="193" selection-end="193" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Problem1.scala" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem1.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="4" column="39" selection-start="139" selection-end="139" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -87,6 +131,7 @@
<option value="$PROJECT_DIR$/src/main/scala/problem13.txt" />
<option value="$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem13.scala" />
<option value="$PROJECT_DIR$/src/main/scala/mx/angellore/others/FizzBuzz.scala" />
<option value="$PROJECT_DIR$/src/main/scala/mx/angellore/other/Test.scala" />
<option value="$PROJECT_DIR$/src/main/scala/mx/angellore/other/FizzBuzz.scala" />
</list>
</option>
@@ -95,6 +140,12 @@
<option name="LAST_EDITED_MODULE_NAME" />
<option name="LAST_EDITED_TAB_NAME" />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="177" />
<option name="y" value="49" />
<option name="width" value="2167" />
<option name="height" value="1292" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
@@ -170,6 +221,10 @@
<option name="myItemId" value="angellore" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="projecteulerimpl" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -210,26 +265,22 @@
</subPane>
</pane>
<pane id="Scope" />
<pane id="Favorites" />
<pane id="PackagesPane" />
<pane id="Favorites" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="GoToFile.includeJavaFiles" value="false" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.15" />
<property name="options.splitter.main.proportions" value="0.3" />
<property name="GoToFile.includeJavaFiles" value="false" />
<property name="project.structure.proportion" value="0.0" />
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
<property name="recentsLimit" value="5" />
<property name="MemberChooser.sorted" value="false" />
<property name="options.lastSelected" value="fileTemplates" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="MemberChooser.copyJavadoc" value="false" />
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
<property name="MemberChooser.showClasses" value="true" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="GoToClass.includeLibraries" value="false" />
<property name="options.searchVisible" value="true" />
<property name="options.splitter.details.proportions" value="0.2" />
<property name="dynamic.classpath" value="false" />
<property name="MemberChooser.copyJavadoc" value="false" />
</component>
<component name="RecentsManager">
<key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
@@ -297,36 +348,6 @@
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>
<configuration default="true" type="Specs2RunConfiguration" factoryName="Specs2">
<module name="" />
<setting name="path" value="" />
<setting name="vmparams" value="" />
<setting name="params" value="" />
<setting name="packagepath" value="" />
<setting name="workingDirectory" value="$PROJECT_DIR$" />
<method>
<option name="AntTarget" enabled="false" />
<option name="BuildArtifacts" enabled="false" />
<option name="Make" enabled="true" />
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>
<configuration default="true" type="SpecsRunConfiguration" factoryName="Specs">
<module name="" />
<setting name="path" value="" />
<setting name="vmparams" value="" />
<setting name="params" value="" />
<setting name="packagepath" value="" />
<setting name="workingDirectory" value="$PROJECT_DIR$" />
<setting name="sysFilter" value=".*" />
<setting name="exampleFilter" value=".*" />
<method>
<option name="AntTarget" enabled="false" />
<option name="BuildArtifacts" enabled="false" />
<option name="Make" enabled="true" />
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>
<configuration default="true" type="Applet" factoryName="Applet">
<module name="" />
<option name="MAIN_CLASS_NAME" />
@@ -389,34 +410,6 @@
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>
<configuration default="true" type="ScalaScriptRunConfiguration" factoryName="Scala Script">
<module name="" />
<setting name="path" value="" />
<setting name="vmparams" value="" />
<setting name="consoleargs" value="" />
<setting name="params" value="" />
<setting name="workingDirectory" value="$PROJECT_DIR$" />
<method>
<option name="AntTarget" enabled="false" />
<option name="BuildArtifacts" enabled="false" />
<option name="Make" enabled="true" />
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>
<configuration default="true" type="ScalaTestRunConfiguration" factoryName="ScalaTest">
<module name="" />
<setting name="path" value="" />
<setting name="package" value="" />
<setting name="vmparams" value="" />
<setting name="params" value="" />
<setting name="workingDirectory" value="$PROJECT_DIR$" />
<method>
<option name="AntTarget" enabled="false" />
<option name="BuildArtifacts" enabled="false" />
<option name="Make" enabled="true" />
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>
<list size="3">
<item index="0" class="java.lang.String" itemvalue="Application.Problem1" />
<item index="1" class="java.lang.String" itemvalue="Application.Problem13" />
@@ -462,22 +455,27 @@
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32982457" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32964224" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32907075" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24929178" sideWeight="0.67035776" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32964224" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24917413" sideWeight="0.67263424" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32736573" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="VcsManagerConfiguration">
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
@@ -502,8 +500,14 @@
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
<option name="SHORT_DIFF_HORISONTALLY" value="true" />
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
<option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="LAST_COMMIT_MESSAGE" value="Solved http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz" />
<option name="LAST_COMMIT_MESSAGE" />
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
@@ -516,9 +520,6 @@
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
<MESSAGE value="Begin code for problem 13" />
<MESSAGE value="Against the advice of @chochosmx, this first version uses bigint, while I find the way to solve otherwise" />
<MESSAGE value="Solved http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
@@ -528,9 +529,34 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem9.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="9" column="7" selection-start="139" selection-end="139" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem10.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="11" column="7" selection-start="159" selection-end="159" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem13.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="11" column="7" selection-start="154" selection-end="154" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem67.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="9" column="7" selection-start="193" selection-end="193" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/projecteulerimpl/Problem1.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="4" column="39" selection-start="139" selection-end="139" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/scala/mx/angellore/other/FizzBuzz.scala">
<provider selected="true" editor-type-id="text-editor">
<state line="22" column="1" selection-start="410" selection-end="410" vertical-scroll-proportion="0.4353562">
<state line="17" column="6" selection-start="390" selection-end="390" vertical-scroll-proportion="0.33464566">
<folding />
</state>
</provider>
@@ -552,7 +578,7 @@
</state>
<state key="FacetStructureConfigurable.UI">
<settings>
<last-edited>Scala (Main)|Scala</last-edited>
<last-edited>Scala</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
@@ -564,7 +590,7 @@
</state>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<last-edited>Scala</last-edited>
<last-edited>groovy-1.8.2</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
@@ -593,6 +619,7 @@
<option name="proportions">
<list>
<option value="0.2" />
<option value="0.5" />
</list>
</option>
</splitter-proportions>
@@ -612,7 +639,6 @@
</state>
<state key="ProjectLibrariesConfigurable.UI">
<settings>
<last-edited>Unnamed</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
@@ -4,20 +4,20 @@
<facet type="scala" name="Scala">
<configuration>
<option name="compilerLibraryLevel" value="Global" />
<option name="compilerLibraryName" value="scala-compiler-2.9.1" />
<option name="compilerLibraryName" value="scala-compiler-2.9.1 (1)" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/scala" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/groovy" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/scala" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="groovy-1.8.2" level="application" />
<orderEntry type="library" name="scala-library-2.9.1" level="application" />
<orderEntry type="library" name="scala-library-2.9.1 (1)" level="application" />
</component>
</module>

@@ -9,15 +9,15 @@ package mx.angellore.other

object FizzBuzz extends App {

for (i <- 1 to 100) {
if ((i % 3) == 0) {
println("Fizz")
} else if ((i % 5) == 0) {
println("Buzz")
(1 to 100).foreach(arg =>
if (arg % 3 == 0) {
println("FIZZ")
} else if (arg % 5 == 0) {
println("BUZZ")
} else {
println(i)
println(arg)
}
}
)


}