Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring code #2

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
e99f18a
Init
VladShyrokyi Apr 17, 2021
0c941f4
refactoring - create static utils
VladShyrokyi Apr 17, 2021
3b0e8bb
code clean up
VladShyrokyi Apr 18, 2021
5968b5c
ignore
VladShyrokyi Apr 18, 2021
9f4f9cf
fixup! code clean up
VladShyrokyi Apr 18, 2021
37078b2
refactoring - moved inner loop to self file
VladShyrokyi Apr 18, 2021
a8c156f
added system file
VladShyrokyi Apr 22, 2021
a9495fc
Added readme
VladShyrokyi Apr 22, 2021
7ce3e6c
Added readme
VladShyrokyi Apr 22, 2021
ed8ab27
Merge remote-tracking branch 'origin/master'
VladShyrokyi Apr 22, 2021
17f34ed
Update lib, great refactoring
VladShyrokyi May 31, 2021
d0d52b4
create random element generator builder
VladShyrokyi Jun 2, 2021
9308a1d
create random element generator builder
VladShyrokyi Jun 2, 2021
748bbcd
Merge remote-tracking branch 'origin/master'
VladShyrokyi Jun 2, 2021
4e09ecf
added RandomElementGenerator.cs ulong default class
VladShyrokyi Jun 2, 2021
b99e5d0
code clean up
VladShyrokyi Jun 2, 2021
28d4813
update README.md
VladShyrokyi Jun 2, 2021
c846b76
update png
VladShyrokyi Jun 2, 2021
bb9c127
clean md
VladShyrokyi Jun 2, 2021
aed8581
change c# version Console app example to 7.3
VladShyrokyi Jun 5, 2021
c4e9b61
fix Board constructor
VladShyrokyi Jun 5, 2021
f68105b
remove redundant dependencies and clear code
VladShyrokyi Jun 5, 2021
6d8bc3f
Merge pull request #1 from VladShyrokyi/fixs
VladShyrokyi Jun 5, 2021
434dcda
Merge remote-tracking branch 'origin/master'
VladShyrokyi Jun 5, 2021
b97cbfe
Refactoring - remove redundant builder pattern, collapse all subclass…
VladShyrokyi Jul 4, 2021
8fe307f
refactoring - remove redundant builder from RandomElementGenerator, a…
VladShyrokyi Jul 4, 2021
43b2e97
code clean up example
VladShyrokyi Jul 4, 2021
ce17cfd
added null point exception when building UpdateLoop
VladShyrokyi Jul 4, 2021
ae460e1
refactoring - rename delegate, change signature
VladShyrokyi Jul 4, 2021
b4b1ccb
[ADD] Comments to Board.cs, overloading operators ==/!=
VladShyrokyi Jul 10, 2021
117265c
[ADD] Comments to Element.cs
VladShyrokyi Jul 10, 2021
7c4bd27
[REFACTORING] Remove redundant builders and delegate.
VladShyrokyi Jul 10, 2021
e5109fb
[FIX] Range out exception when all Percentage less 1 in RandomElement…
VladShyrokyi Jul 10, 2021
a505d43
[FIX] Removed redundant references, changed nuget package reference t…
VladShyrokyi Jul 11, 2021
832b489
[REFACTORING] Remove classes extended for ulong
VladShyrokyi Jul 11, 2021
484618a
[REFACTORING] Rename main class
VladShyrokyi Jul 11, 2021
84db59b
[REFACTORING] Remove Element builder
VladShyrokyi Jul 11, 2021
bf29f15
[REFACTORING] Rename Element to Cell
VladShyrokyi Jul 11, 2021
70f6854
[REFACTORING] Rename IElementGenerator to ICellGenerator
VladShyrokyi Jul 11, 2021
6005608
[REFACTORING] Remove UpdateLoop builder
VladShyrokyi Jul 11, 2021
28bb855
[REFACTORING] Remove BoardBehavior builder
VladShyrokyi Jul 11, 2021
8e47639
[REFACTORING] Change merge, predicate delegates, and base value prope…
VladShyrokyi Jul 11, 2021
33d1aac
[FIX] Encapsulated fields in BoardBehavior
VladShyrokyi Jul 11, 2021
20d04aa
[FIX] Encapsulating UpdateLoop class - moved into BoardBehavior
VladShyrokyi Jul 11, 2021
d6cc0e0
[REFACTORING] Moved iterating logic into UpdateLoop
VladShyrokyi Jul 11, 2021
a0f8366
[REFACTORING] Remove builder on RandomCellGenerator
VladShyrokyi Jul 13, 2021
2dfb730
[UPDATED] File README.md
VladShyrokyi Jul 14, 2021
2cc40bb
Merge pull request #2 from VladShyrokyi/refactoring
VladShyrokyi Jul 14, 2021
074fceb
Merge remote-tracking branch 'origin/master'
VladShyrokyi Jul 14, 2021
1e4246d
[ADD] Update AssemblyInfo.cs
VladShyrokyi Aug 15, 2021
c4530df
Merge pull request #3 from VladShyrokyi/update_assembly
VladShyrokyi Aug 15, 2021
9cb84fd
[ADD] Update README.md
VladShyrokyi Aug 15, 2021
c0a4e39
Merge pull request #4 from VladShyrokyi/update_assembly
VladShyrokyi Aug 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers = false
csharp_preferred_modifier_order = public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
csharp_prefer_braces = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
dotnet_naming_rule.unity_serialized_field_rule.severity = warning
dotnet_naming_rule.unity_serialized_field_rule.style = upper_camel_case_style
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds = unity_serialised_field
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance
dotnet_separate_import_directive_groups = true
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:none
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion

# ReSharper properties
resharper_align_multiline_argument = true
resharper_align_multiline_for_stmt = true
resharper_align_multiple_declaration = true
resharper_align_multline_type_parameter_constrains = true
resharper_align_multline_type_parameter_list = true
resharper_align_tuple_components = false
resharper_blank_lines_around_auto_property = 0
resharper_blank_lines_around_local_method = 0
resharper_blank_lines_around_single_line_type = 0
resharper_blank_lines_before_control_transfer_statements = 1
resharper_blank_lines_inside_namespace = 1
resharper_braces_redundant = true
resharper_csharp_align_multiline_argument = false
resharper_csharp_blank_lines_around_field = 0
resharper_csharp_empty_block_style = together_same_line
resharper_csharp_int_align_comments = true
resharper_csharp_keep_blank_lines_in_code = 1
resharper_csharp_stick_comment = false
resharper_csharp_wrap_extends_list_style = chop_if_long
resharper_force_attribute_style = join
resharper_indent_nested_foreach_stmt = true
resharper_indent_nested_for_stmt = true
resharper_indent_nested_while_stmt = true
resharper_indent_preprocessor_directives = normal
resharper_int_align_nested_ternary = true
resharper_int_align_property_patterns = true
resharper_int_align_switch_expressions = true
resharper_int_align_switch_sections = true
resharper_local_function_body = expression_body
resharper_max_formal_parameters_on_line = 5
resharper_place_method_attribute_on_same_line = if_owner_is_single_line
resharper_place_type_attribute_on_same_line = if_owner_is_single_line
resharper_show_autodetect_configure_formatting_tip = false
resharper_space_around_arrow_op = true
resharper_space_within_single_line_array_initializer_braces = true
resharper_use_indent_from_vs = false

# ReSharper inspection severities
resharper_arrange_attributes_highlighting = hint
resharper_arrange_constructor_or_destructor_body_highlighting = hint
resharper_arrange_local_function_body_highlighting = hint
resharper_arrange_method_or_operator_body_highlighting = suggestion
resharper_arrange_redundant_parentheses_highlighting = hint
resharper_arrange_this_qualifier_highlighting = hint
resharper_arrange_type_member_modifiers_highlighting = hint
resharper_arrange_type_modifiers_highlighting = hint
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
resharper_built_in_type_reference_style_highlighting = hint
resharper_check_namespace_highlighting = hint
resharper_enforce_do_while_statement_braces_highlighting = hint
resharper_enforce_fixed_statement_braces_highlighting = hint
resharper_enforce_foreach_statement_braces_highlighting = hint
resharper_enforce_for_statement_braces_highlighting = hint
resharper_enforce_if_statement_braces_highlighting = hint
resharper_enforce_lock_statement_braces_highlighting = hint
resharper_enforce_using_statement_braces_highlighting = hint
resharper_enforce_while_statement_braces_highlighting = hint
resharper_redundant_base_qualifier_highlighting = warning
resharper_remove_redundant_braces_highlighting = hint
resharper_suggest_var_or_type_built_in_types_highlighting = hint
resharper_suggest_var_or_type_elsewhere_highlighting = hint
resharper_suggest_var_or_type_simple_types_highlighting = hint
resharper_web_config_module_not_resolved_highlighting = warning
resharper_web_config_type_not_resolved_highlighting = warning
resharper_web_config_wrong_module_highlighting = warning

[*.{appxmanifest,asax,ascx,aspx,axaml,build,cg,cginc,compute,cs,cshtml,dtd,fs,fsi,fsscript,fsx,hlsl,hlsli,hlslinc,master,ml,mli,nuspec,paml,razor,resw,resx,shader,skin,usf,ush,vb,xaml,xamlx,xoml,xsd}]
indent_style = space
indent_size = 4
tab_width = 4
162 changes: 6 additions & 156 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,156 +1,6 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf


#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store
bin/
obj/
.idea/
/packages/
riderModule.iml
/_ReSharper.Caches/
Loading