How to quickly achieve a minesweeping , The best way is not to write from scratch , But transplant a written ! Blazor It's not a short time to come out , As a .net Developers can use it .Blazor It feels like Angular and React The combination of , A one-way , Two way binding , Components , Is dependency injection
Deja vu ?
No naughty js, There's no need for endless npm, Only familiar c# and nuget, Let's get started !
I choose to transplant one with VUE Written minesweeping , See how much work it takes to migrate to Blazor.
For this simple minesweeping , The workload is really small .
1. Template VUE The template can be easily used razor To achieve
2.js and c# As c Department of language , In fact, a large part is similar !
3.blazor As a latecomer , Swallow anything and everything , You can see the shadow of other frames on it !
4.style css, Almost no need to change, just copy it directly and finish it !
5. As the number one in the universe IDE It's not covered , It can really make your development more comfortable
6.c# As a static language , Many problems can be detected during compilation
7. Convenient debugging makes you forget that you are writing a web Program
8. Life cycle , Other frameworks have blazor It's the same
9.c# Impossible , call js It's over !
Blazor Disadvantages at this stage : Is too heavy ! Than Angular More weight , hope MS Can solve this problem in the near future , Otherwise, I can only entertain myself .!
There is a good conclusion :Blazor Maybe not web The future of development , But it could be Asp.net web The future of development !
Demo:
Source code :
https://github.com/hotfics/blazorMinesweeper
Blazor Quickly realize mine sweeping (MineSweeper) More articles about
- 32 Bit compilation Lecture 5 , Reverse combat dry goods ,(OD) Quickly locate minesweeping memory .
32 Fifth lecture , Reverse combat dry goods , Quickly locate minesweeping memory . First , Before the reverse , Let's start with OD There is an acquaintance . I. 1 OD Use label 1: Disassembly window ( Display the address of the code , Binary instructions , Assembly code , notes ) label 2: register window ( ...
- jquery Online minesweeping
< Mine clearance > It is a popular puzzle game , On 1992 Issued in . The goal of the game is to find out all non thunder grids according to the numbers in the click grid in the shortest time , At the same time, avoid stepping on thunder . Try online http://hovertree.com/te ...
- [ recommend ] A lot of Blazor Learning resources ( Two )
Following last article <[ recommend ] A lot of Blazor Learning resources ( One )> after , The community responded well , However, due to personal reasons, this article came late , But finally it came ! This article mainly collects some common components . Books and e-books . source :htt ...
- Use MASA Blazor Develop a standard query form page
Preface Hello everyone , I'm an open source project MASA Blazor One of the main developers , If you don't already know MASA Blazor, You can visit our Official website And blog < First time to know MASA Blazor> To find out . Simply speaking , ...
- FreeSql Various projects demo New
FreeSql Various projects demo GitHub | Gitee console,winforms nf461,vb,wpf,webapi,workerSevice,signalIR xamarinFo ...
- Yantai University Contest1024 - 《 Challenge programming 》 Chapter one : introduction Problem B: Minesweeper( Simulated minesweeping )
Problem B: Minesweeper Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 29 Solved: 7[Submit][Status][W ...
- [LeetCode] Minesweeper The Minesweeper game
Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representin ...
- [Swift]LeetCode529. The Minesweeper game | Minesweeper
Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representin ...
- [LeetCode] 529. Minesweeper Mine clearance
Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representin ...
- Leetcode Breadth first search (BFS) project -529. The Minesweeper game (Minesweeper)
Leetcode Breadth first search (BFS) project -529. The Minesweeper game (Minesweeper) BFS Introduction details :Leetcode Breadth first search (BFS) project -429. N Sequence traversal of the fork tree (N-ary Tre ...
Random recommendation
- C++11 auto and decltype
1.auto keyword C++ Introduction of new standards auto key word , this auto Prior to C Linguistic auto The meaning is different . there auto Is to modify the type of unknown variable , The compiler will automatically deduce the type of the variable through the initialization of the variable . for example :aut ...
- ThinkPHP 3.2.3 Addition and subtraction multiplication verification code class
ThinkPHP 3.2.3 The self-contained verification code class is located in /ThinkPHP/Library/Think/Verify.class.php, The font file is located in /ThinkPHP/Library/Think/Ver ...
- 【C++ meditations 】 proxy class
1. Consider the following scenario : Design a container , Contains a set of objects of different types but related to each other ( such as :Animal,Dog,Cat), Objects have polymorphic behavior .2. Containers can generally contain only one type of object , Use vector<Animal&g ...
- laravel Use alicloud under the Internet oss To upload pictures
For small companies , Use alicloud oss It's more cost-effective than buying a hard disk , No matter from the storage cost performance or from the network speed load . Recently, because the company's project has a relatively large demand for image storage and access , So I decided to use alicloud's oss. After a bit of research , They don't make their own wheels ...
- load d3dcompiler_46.dll failed
https://gist.github.com/rygorous/7936047 Ed shader When I met this warning I don't know if it's a hidden danger .. I'm going to do a new project from today on Try to get this from a colleague dll ...
- SGU 276 Andrew's Troubles
Simple questions . Just find the meaning of the question . #include <iostream> #include <cstdio> using namespace std; int s, n, ans ...
- Come and learn together linux: Network command
First, introduce the most basic and frequently used commands ifconfig, Corresponding windows Medium ipconfig. perform ifconfig All port information will be displayed , Include IP Address ,MTU Messages received and sent include HWaddr That is to say ...
- VirtualBox install CENTOS7.3 common problem
1 DHCP The problem cannot be solved online :sudo dhclient 2 Install the pagoda panel :yum install -y wget && wget -O install.sh http://dow ...
- javascript Advanced skills ( Scope security 、 tamper-proof 、 Lazy loading 、 throttle 、 Custom events , Drag and drop )
The type of security detection Call... On any value Object Native toString() Method , Will return to one [object NativeConstructorName] Format string . Each class has one inside [[Class]] attribute ...
- mongodb in Gson and java##Bean Object conversion class
This kind of use feels cumbersome , Each field can only be used with comments , Not as good as mongoTemplate Easy to use , But if mongo Client words , It's still a little faster than manual splicing , So post it here package com.iwher ...









